python-discord / bot

The community bot for the Python Discord community
https://pythondiscord.com
MIT License
1.31k stars 652 forks source link

Use COVERAGE_CORE=sysmon when running tests in CI #3075

Closed wookie184 closed 1 month ago

wookie184 commented 1 month ago

https://coverage.readthedocs.io/en/7.5.1/cmd.html#execution-coverage-run

In Python 3.12 and above, you can try an experimental core based on the new sys.monitoring module by defining a COVERAGE_CORE=sysmon environment variable. This should be faster, though plugins and dynamic contexts are not yet supported with it.

Confirmed it gives the same result for us, just a lot faster.