Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
indiVar0508 opened this issue Aug 25, 2023 · 5 comments
Open

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

indiVar0508 opened this issue Aug 25, 2023 · 5 comments

Comments

@indiVar0508
Copy link

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
Copy link
Author

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
Copy link

olferuk commented Sep 22, 2023

Same problem here

@tarpas
Copy link
Owner

tarpas commented Nov 7, 2023

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
Copy link
Owner

tarpas commented Nov 7, 2023

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.

@ishanwork
Copy link

what is wrong with branch based coverage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants