From 8ec0ea8ff6ff9105783df652ce9419ef2cb14f1d Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Tue, 11 Jan 2022 16:03:08 +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 0000000..7c3cacb --- /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 97f7586..3b7208d 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ setenv = PYTHONPATH=. SETUPTOOLS_USE_DISTUTILS=stdlib DB_ENGINE=postgresql_psycopg2 - coverage: COVERAGE=--cov=mellon --cov-branch --cov-append --cov-report xml --cov-report html + coverage: COVERAGE=--cov=mellon --cov-branch --cov-append --cov-report xml --cov-report html --cov-config .coveragerc usedevelop = coverage: true deps =