Skip to content

Commit

Permalink
Disable branch coverage for e3-core
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cookiecutter-e3 committed Dec 11, 2024
1 parent cbf78d9 commit 23fccfa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ deps =
codecov: codecov
extras = test

# Speed up coverage on Python >= 3.12
setenv =
# Set COVERAGE_CORE only for Python >= 3.12
COVERAGE_CORE=sysmon
py311: COVERAGE_CORE=
py310: COVERAGE_CORE=
py39: COVERAGE_CORE=

# Run testsuite with coverage when '-cov' and with multi-threading when '-xdist'
# is in the env name
commands=
Expand Down

0 comments on commit 23fccfa

Please sign in to comment.