diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..7c3cacb --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +[run] +dynamic_context = test_function + +[html] +show_contexts = True diff --git a/Jenkinsfile b/Jenkinsfile index 593b1d0..c88cf72 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,6 +13,7 @@ pipeline { script { utils = new Utils() utils.publish_coverage('coverage.xml') + utils.publish_coverage_native('index.html') } mergeJunitResults() } diff --git a/tox.ini b/tox.ini index bf77378..3e6eb1d 100644 --- a/tox.ini +++ b/tox.ini @@ -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