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

There's no way to specify --show-missing in the .coveragerc file #173

Closed
nedbat opened this issue Apr 8, 2012 · 7 comments
Closed

There's no way to specify --show-missing in the .coveragerc file #173

nedbat opened this issue Apr 8, 2012 · 7 comments
Labels
bug Something isn't working report

Comments

@nedbat
Copy link
Owner

nedbat commented Apr 8, 2012

I wonder why?


@nedbat
Copy link
Owner Author

nedbat commented Apr 18, 2012

Reported by lvh in #python.

@nedbat
Copy link
Owner Author

nedbat commented Apr 18, 2012

Fixed in <<changeset 3c7807e79d4f (bb)>>.

@nedbat
Copy link
Owner Author

nedbat commented Aug 17, 2013

Original comment by Michael Palumbo (Bitbucket: YAmikep, GitHub: YAmikep)


Is that really fixed because I am having the same problem.
Setting show_missing = True in the .coveragerc file has no effect...

I run coverage using nosetests and nose-cove:
nosetests --with-doctest --with-cov --cov-config .coveragerc

@nedbat
Copy link
Owner Author

nedbat commented Aug 17, 2013

@YAmikep can you show some specifics?

@nedbat
Copy link
Owner Author

nedbat commented Aug 17, 2013

Original comment by Michael Palumbo (Bitbucket: YAmikep, GitHub: YAmikep)


Here is the coveragerc file: https://bitbucket.org/YAmikep/ixml/src/33dfc323694f80e12d91fd8ec58c51fa52b1f297/.coveragerc

Running that will not provide the missing lines information::

nosetests --with-doctest --with-cov --cover-erase --cov-config .coveragerc

I need to add --cov-report term-missing from nose-cov::

nosetests --with-doctest --with-cov --cover-erase --cov-config .coveragerc  --cov-report term-missing

@nedbat
Copy link
Owner Author

nedbat commented Aug 17, 2013

@YAmikep Unfortunately, nose-cov provides its own value for show-missing, based on the command-line arguments, so it always overrides the value in the .coveragerc. One solution is to avoid nose-cov, and use coverage to run nosetests directly.

@nedbat
Copy link
Owner Author

nedbat commented Aug 17, 2013

Original comment by Michael Palumbo (Bitbucket: YAmikep, GitHub: YAmikep)


All right thank you.
I tried using only coverage but I could not make it work right with nosetests and I want to use nosetests. Any advice to use only nosetests and coverage?

@nedbat nedbat closed this as completed Aug 17, 2013
@nedbat nedbat added minor bug Something isn't working report 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 report
Projects
None yet
Development

No branches or pull requests

1 participant