-
Notifications
You must be signed in to change notification settings - Fork 58
/
Makefile
30 lines (22 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: all lint
all_tests: lint unittest performancetest
help:
@echo "Please use 'make <target>' where <target> is one of:"
@echo " lint to run flake8 on all Python files"
@echo " unittest to run unit tests on nimare"
@echo " test_performance_estimators to run performance tests on meta estimators"
@echo " test_performance_correctors to run performance tests on correctors"
@echo " test_performance_smoke to run performance smoke tests"
@echo " test_cbmr_importerror to run cbmr importerror tests"
lint:
@flake8 nimare
unittest:
@py.test -m "not performance_estimators and not performance_correctors and not performance_smoke and not cbmr_importerror" --cov-append --cov-report=xml --cov=nimare nimare
test_performance_estimators:
@py.test -m "performance_estimators" --cov-append --cov-report=xml --cov=nimare nimare
test_performance_correctors:
@py.test -m "performance_correctors" --cov-append --cov-report=xml --cov=nimare nimare
test_performance_smoke:
@py.test -m "performance_smoke" --cov-append --cov-report=xml --cov=nimare nimare
test_cbmr_importerror:
@py.test -m "cbmr_importerror" --cov-append --cov-report=xml --cov=nimare nimare