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

testmon does not work with --branch based coverage #223

Open indiVar0508 opened 10 months ago

indiVar0508 commented 10 months ago

Is your feature request related to a problem? Please describe. In my CI, we also generate branch based coverage. coverage is generated with a branch flag so it also tracks branch related coverage but it seems to upset testmon when i am using it and gives this error

testmon.testmon_core.TestmonException: testmon doesn't support simultaneous run with pytest-cov when branch coverage is on. Please disable branch coverage.

is there plan in future to also handle branch based coverage and testmon?

Describe the solution you'd like Don't have any

Describe alternatives you've considered Not sure

Additional context None

indiVar0508 commented 10 months ago

also wanted to know how to handle scenario, when i have no changes and its a scheduled test i used flag --testmon-noselect so it does run all tests but it is not generating coverage data?

olferuk commented 9 months ago

Same problem here

tarpas commented 8 months ago

also wanted to know how to handle scenario, when i have no changes and its a scheduled test i used flag --testmon-noselect so it does run all tests but it is not generating coverage data?

Unless I'm missing something it should. pytest --testmon-noselect --cov=. just generated .coverage file for me.

tarpas commented 8 months ago
testmon.testmon_core.TestmonException: testmon doesn't support simultaneous run with pytest-cov when branch coverage is on. Please disable branch coverage.

is there plan in future to also handle branch based coverage and testmon?

Not at the moment.