hugovk, 3 months ago to python @coveragepy can now use Python 3.12's new sys.monitoring module with much lower overhead. On 3.12, it's about the same as if you were running tests without coverage enabled! https://nedbatchelder.com/blog/202312/coveragepy_with_sysmonitoring.html With 7.4.2, you can set COVERAGE_CORE=sysmon globally on your CI, and it'll only use it where available (Python 3.12 and 3.13 alpha), and use the default for 3.11 and older. For example, @pillow is 9% - 27% faster! https://github.com/python-pillow/Pillow/pull/7820 #Python #coverage #CoveragePy #pytest #testing #CI
@coveragepy can now use Python 3.12's new sys.monitoring module with much lower overhead.
On 3.12, it's about the same as if you were running tests without coverage enabled!
https://nedbatchelder.com/blog/202312/coveragepy_with_sysmonitoring.html
With 7.4.2, you can set COVERAGE_CORE=sysmon globally on your CI, and it'll only use it where available (Python 3.12 and 3.13 alpha), and use the default for 3.11 and older.
For example, @pillow is 9% - 27% faster!
https://github.com/python-pillow/Pillow/pull/7820
#Python #coverage #CoveragePy #pytest #testing #CI
hugovk, 7 months ago to til TIL: exclude_also with @coveragepy https://dev.to/hugovk/til-excludealso-with-coveragepy-2hkm #TIL #Python #Coverage #CoveragePy
TIL: exclude_also with @coveragepy https://dev.to/hugovk/til-excludealso-with-coveragepy-2hkm #TIL #Python #Coverage #CoveragePy