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

This commit is contained in:
Emmanuel Cazenave 2022-01-11 16:18:00 +01:00
parent 70dc277748
commit 016ff7e1ee
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

@ -15,7 +15,7 @@ envlist =
[testenv]
usedevelop = true
setenv =
COVERAGE={tty::--cov=wcs_olap --cov-branch --cov-append --cov-report xml --cov-report html}
COVERAGE={tty::--cov=wcs_olap --cov-branch --cov-append --cov-report xml --cov-report html --cov-config .coveragerc}
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
WCS_MANAGE=wcs/manage.py
PGDATABASE=postgres