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

Measure test coverage in subshells #26

Open
zupo opened this issue Nov 25, 2022 · 0 comments
Open

Measure test coverage in subshells #26

zupo opened this issue Nov 25, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@zupo
Copy link
Contributor

zupo commented Nov 25, 2022

Some code needs to have # pragma: no cover so that our coverage still shows as 100%. The reason is this code is executed in a subshell while testing (using pexpect) so coverage doesn't pick it up.

coverage.py supports measuring subprocess execution but I am too tired at the moment to figure it out: https://coverage.readthedocs.io/en/6.2/subprocess.html

@domenkozar domenkozar added the enhancement New feature or request label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants