Skip to content

Commit 23fccfa

Browse files
author
cookiecutter-e3
committed
Disable branch coverage for e3-core
This is required in combination with COVERAGE_CORE=sysmon to speed up coverage runs with Python >= 3.12. See nedbat/coveragepy#1812 This was tentativly done by it/e3-core!76 as the option was not found in the tox.ini template file. ref it/cookiecutter-e3#73 ref it/e3-core#28 See merge request it/cookiecutter-e3!61 of the template
1 parent cbf78d9 commit 23fccfa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ deps =
1313
codecov: codecov
1414
extras = test
1515

16+
# Speed up coverage on Python >= 3.12
17+
setenv =
18+
# Set COVERAGE_CORE only for Python >= 3.12
19+
COVERAGE_CORE=sysmon
20+
py311: COVERAGE_CORE=
21+
py310: COVERAGE_CORE=
22+
py39: COVERAGE_CORE=
23+
1624
# Run testsuite with coverage when '-cov' and with multi-threading when '-xdist'
1725
# is in the env name
1826
commands=

0 commit comments

Comments
 (0)