tarpas / pytest-testmon

Selects tests affected by changed files. Executes the right tests first. Continuous test runner when used with pytest-watch.
https://testmon.org
MIT License
800 stars 54 forks source link

Avoid starting coverage multiple times #189

Closed janbernloehr closed 1 year ago

janbernloehr commented 1 year ago

When running testmon in conjunction with pytest-forked, the hook wrapper pytest_runtest_protocol is called twice. Once on the original process and then again on the forked one. This leads to Coverage hooks being reset (but not fully) which subsequently leads to crashes whenever a function trace is analyzed.

Fixes #184

tarpas commented 1 year ago

I'll take this temporarily, but there are some internal changes upcoming which might interfere. I'll try to remember not to break this again :)

tarpas commented 1 year ago

released as 1.3.5dev4, install with pip install "pytest-testmon==1.3.5dev4" please