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

tox.ini: Add "cover" target #3751

Closed
wants to merge 1 commit into from

Conversation

BrownTruck
Copy link
Contributor

that measures coverage for unit tests only. Functional tests are slow
enough already and a lot of them fail when coverage is measured, because
they fork processes and them emit warnings to stderr that the tests are
not expecting.

I think it's a good thing to try to increase unit test coverage and this
lets us measure and see where the gaps are. And it will help folks
realize if they increased or decreased coverage with their changes.


This was automatically migrated from #2546 to reparent it to the master branch. Please see original pull request for any previous discussion.

Original Submitter: @msabramo

that measures coverage for unit tests only. Functional tests are slow
enough already and a lot of them fail when coverage is measured, because
they fork processes and them emit warnings to stderr that the tests are
not expecting.

I think it's a good thing to try to increase unit test coverage and this
lets us measure and see where the gaps are. And it will help folks
realize if they increased or decreased coverage with their changes.
@pradyunsg
Copy link
Member

@xavfernandez Is coverage a useful metric to be tracking?

@pradyunsg
Copy link
Member

Pinging @dstufft @pfmoore...

@pradyunsg pradyunsg added the state: needs discussion This needs some more discussion label Aug 21, 2017
@xavfernandez
Copy link
Member

xavfernandez commented Sep 1, 2017

I personally like it 👍

@pradyunsg pradyunsg added the needs rebase or merge PR has conflicts with current master label Nov 3, 2017
@BrownTruck BrownTruck removed the needs rebase or merge PR has conflicts with current master label Nov 4, 2017
@pradyunsg
Copy link
Member

ugh. Okay BrownTruck.

@pypa/pip-committers Should we close this PR and move to an issue for discussion?

@xavfernandez
Copy link
Member

I think we could merge this as is if someone wants to have a coverage run (without adding an other travis run)/

@xavfernandez xavfernandez added the skip news Does not need a NEWS file entry (eg: trivial changes) label Nov 4, 2017
@pradyunsg
Copy link
Member

I've made #4862.

@pradyunsg pradyunsg closed this Nov 14, 2017
@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes) state: needs discussion This needs some more discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants