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

Check test coverage with "coverage" #52

Open
ptrpfn opened this issue Jan 13, 2021 · 0 comments
Open

Check test coverage with "coverage" #52

ptrpfn opened this issue Jan 13, 2021 · 0 comments

Comments

@ptrpfn
Copy link
Collaborator

ptrpfn commented Jan 13, 2021

Easy way to check which part of the code is covered by tests: https://coverage.readthedocs.io/en/coverage-5.3.1

pip3 install coverage
coverage run --source mhl -m pytest
coverage html

Creates browse-able HTML pages of the entire Python code that marks which code lines are not reach ed by tests.

Already identified a few tests that are missing, for example the verify -dh sub-command.

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

No branches or pull requests

1 participant