From 04674bb16f612661c2791b8d7cd646fabce5313e Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Tue, 11 Jan 2022 15:51:21 +0100 Subject: [PATCH] jenkins: show execution context in coverage reports (#60446) --- .coveragerc | 5 +++++ tox.ini | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..7c3cacba --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +[run] +dynamic_context = test_function + +[html] +show_contexts = True diff --git a/tox.ini b/tox.ini index 8511bf24..ad3f760e 100644 --- a/tox.ini +++ b/tox.ini @@ -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