-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (29 loc) · 925 Bytes
/
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
31
32
33
34
35
36
install:
# install
python setup.py install
test.unit:
# test units
python -m pytest -m "not integration"
test.integration:
# test end-to-end function
rm -rf orthofisher_output/
python -m pytest --basetemp=output -m "integration"
test.fast:
python -m pytest -m "not (integration or slow)"
rm -rf output/
mkdir output/
python -m pytest --basetemp=output -m "integration and not slow"
test:
## execute both integration and unit tests
# unit tests
python -m pytest -m "not integration"
# integration tests
python -m pytest --basetemp=output -m "integration"
# used by GitHub actions during CI workflow
test.coverage: coverage.unit coverage.integration
coverage.unit:
python -m pytest --cov=./ -m "not integration" --cov-report=xml:unit.coverage.xml
coverage.integration:
rm -rf output/
mkdir output/
python -m pytest --basetemp=output --cov=./ -m "integration" --cov-report=xml:integration.coverage.xml