File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ export CODECOV_TOKEN=${CODECOV_UPLOAD_TOKEN}
19
19
API_DOMAIN ?= api
20
20
PROXY_NETWORK ?= api_default
21
21
22
+ # We allow this to be overridden so that we can run `pytest` from this directory
23
+ # but have the junit file use paths relative to a parent directory. This will
24
+ # help us move to a monorepo.
25
+ PYTEST_ROOTDIR ?= "."
26
+
22
27
# Codecov CLI version to use
23
28
CODECOV_CLI_VERSION := 9.0.4
24
29
@@ -30,13 +35,13 @@ check-for-migration-conflicts:
30
35
python manage.py check_for_migration_conflicts
31
36
32
37
test :
33
- COVERAGE_CORE=sysmon pytest --cov=./ --junitxml=junit.xml -o junit_family=legacy
38
+ COVERAGE_CORE=sysmon pytest --cov=./ --junitxml=junit.xml -o junit_family=legacy -c pytest.ini --rootdir= ${PYTEST_ROOTDIR}
34
39
35
40
test.unit :
36
- COVERAGE_CORE=sysmon pytest --cov=./ -m " not integration" --cov-report=xml:unit.coverage.xml --junitxml=unit.junit.xml -o junit_family=legacy
41
+ COVERAGE_CORE=sysmon pytest --cov=./ -m " not integration" --cov-report=xml:unit.coverage.xml --junitxml=unit.junit.xml -o junit_family=legacy -c pytest.ini --rootdir= ${PYTEST_ROOTDIR}
37
42
38
43
test.integration :
39
- COVERAGE_CORE=sysmon pytest --cov=./ -m " integration" --cov-report=xml:integration.coverage.xml --junitxml=integration.junit.xml -o junit_family=legacy
44
+ COVERAGE_CORE=sysmon pytest --cov=./ -m " integration" --cov-report=xml:integration.coverage.xml --junitxml=integration.junit.xml -o junit_family=legacy -c pytest.ini --rootdir= ${PYTEST_ROOTDIR}
40
45
41
46
lint :
42
47
make lint.install
You can’t perform that action at this time.
0 commit comments