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

Add --precision option to report command #982

Merged
merged 1 commit into from
May 12, 2020

Conversation

teake
Copy link
Contributor

@teake teake commented Apr 30, 2020

This PR adds a --precision <N> CLI option to coverage report, so you don't have to write a .coveragerc file if you only want to adjust the precision.

Note: I did a few ad-hoc tests and those ran fine, but I couldn't get the test suite to pass. Since I didn't want to spend too much time on this I decided to submit the PR as-is. Hopefully you can fix the failing tests easily, but otherwise I won't be too embarrassed if this gets rejected.

@nedbat
Copy link
Owner

nedbat commented Apr 30, 2020

Thanks, I'll take a look. Don't forget that you can put settings into tox.ini, setup.cfg, or pyproject.toml files also.

@nedbat nedbat merged commit bbd0c0f into nedbat:master May 12, 2020
@nedbat
Copy link
Owner

nedbat commented May 12, 2020

Thanks, I finished it up in 916a0c9

@nedbat
Copy link
Owner

nedbat commented Jul 6, 2020

This is now released as part of coverage 5.2.

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

Successfully merging this pull request may close these issues.

2 participants