From 964a28b2ddfcd1e8a25404708115cfc372b80c55 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Tue, 11 Jan 2022 16:07:00 +0100 Subject: [PATCH] jenkins: show execution context in coverage reports (#60446) --- .coveragerc | 5 +++++ Jenkinsfile | 1 + tox.ini | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .coveragerc 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