summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2022-01-11 15:13:24 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2022-01-11 15:13:24 (GMT)
commit6f9ebcd86603931a2feceb17141bf9f1d2efe9b3 (patch)
tree626d4a81f127e4aebf28cae45d7bbec7ad9f3862
parentb0fe753a588f48d2615fec2dc15a1bdcb1faf35e (diff)
downloadeopayment-6f9ebcd86603931a2feceb17141bf9f1d2efe9b3.zip
eopayment-6f9ebcd86603931a2feceb17141bf9f1d2efe9b3.tar.gz
eopayment-6f9ebcd86603931a2feceb17141bf9f1d2efe9b3.tar.bz2
jenkins: show execution context in coverage reports (#60446)
-rw-r--r--.coveragerc4
-rw-r--r--tox.ini2
2 files changed, 5 insertions, 1 deletions
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