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

This commit is contained in:
Emmanuel Cazenave 2022-01-11 16:07:00 +01:00
parent 690d2ff874
commit 964a28b2dd
3 changed files with 7 additions and 1 deletions

5
.coveragerc Normal file
View File

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

1
Jenkinsfile vendored
View File

@ -13,6 +13,7 @@ pipeline {
script {
utils = new Utils()
utils.publish_coverage('coverage.xml')
utils.publish_coverage_native('index.html')
}
mergeJunitResults()
}

View File

@ -28,7 +28,7 @@ setenv =
DOCBOW_SETTINGS_FILE=tests/settings.py
mellon: DOCBOW_SETTINGS_FILE=tests/sso/settings.py
pfwbmellon: DOCBOW_SETTINGS_FILE=tests/pfwbmellon/settings.py
coverage: COVERAGE=--cov-append --cov-report xml --cov-report html --cov=docbow_project/
coverage: COVERAGE=--cov-append --cov-report xml --cov-report html --cov=docbow_project/ --cov-config .coveragerc
BRANCH_NAME={env:BRANCH_NAME:}
commands =
./getlasso3.sh