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

Coverage.report() ignores show_missing and skip_covered from config #485

Closed
nedbat opened this issue Apr 12, 2016 · 2 comments
Closed

Coverage.report() ignores show_missing and skip_covered from config #485

nedbat opened this issue Apr 12, 2016 · 2 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Apr 12, 2016

Originally reported by Denis Otkidach (Bitbucket: ods, GitHub: ods)


Arguments show_missing and skip_covered of Coverage.report() have non-None default values that causes parameters with the same name from config overwritten unless you explicitly pass Nones to Coverage.report(). That is the reason why pytest-cov plugin doesn't allow setting these parameters through config file.

Changing default values of show_missing and skip_covered of Coverage.report() method to None solves the problem.


@nedbat
Copy link
Owner Author

nedbat commented Apr 12, 2016

Original comment by Denis Otkidach (Bitbucket: ods, GitHub: ods)


Described the solution.

@nedbat
Copy link
Owner Author

nedbat commented May 8, 2016

Fixed in c352925bd28b (bb)

@nedbat nedbat closed this as completed May 8, 2016
@nedbat nedbat added major bug Something isn't working labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant