From 6f9ebcd86603931a2feceb17141bf9f1d2efe9b3 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Tue, 11 Jan 2022 16:13:24 +0100 Subject: [PATCH] jenkins: show execution context in coverage reports (#60446) --- .coveragerc | 4 ++++ tox.ini | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.coveragerc b/.coveragerc index 977ca2a..0b9fec5 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,2 +1,6 @@ [run] +dynamic_context = test_function omit = */.tox/* + +[html] +show_contexts = True diff --git a/tox.ini b/tox.ini index ab7207f..f18a841 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/eopayment/{env:BRANCH_NAME:} setenv = SETUPTOOLS_USE_DISTUTILS=stdlib commands = - py3: py.test {posargs: --junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=eopayment/ tests} + py3: py.test {posargs: --junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov-config .coveragerc --cov=eopayment/ tests} codestyle: pre-commit run --all-files --show-diff-on-failure usedevelop = True deps = coverage