jenkins: show execution context in coverage reports (#60446)

This commit is contained in:
Emmanuel Cazenave 2022-01-11 15:51:21 +01:00
parent 6b22764afd
commit 04674bb16f
2 changed files with 6 additions and 1 deletions

5
.coveragerc Normal file
View File

@ -0,0 +1,5 @@
[run]
dynamic_context = test_function
[html]
show_contexts = True

View File

@ -11,7 +11,7 @@ setenv =
CHRONO_SETTINGS_FILE=tests/settings.py
BRANCH_NAME={env:BRANCH_NAME:}
SETUPTOOLS_USE_DISTUTILS=stdlib
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=chrono/
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=chrono/ --cov-config .coveragerc
deps =
pytest-cov
pytest-django