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

--cover-package=foo should imply --with-coverage #514

Closed
seibert opened this issue Apr 23, 2012 · 1 comment
Closed

--cover-package=foo should imply --with-coverage #514

seibert opened this issue Apr 23, 2012 · 1 comment

Comments

@seibert
Copy link

seibert commented Apr 23, 2012

It would be handy if I didn't have to specify both --with-coverage and --cover-package as separate options. Is there a way to automatically set --with-coverage if I pass --cover-package as an option to nosetests?

For that matter, --cover-* should automatically set --with-coverage, I think.

wiggin15 added a commit to Infinidat/nose that referenced this issue Apr 17, 2013
Enable coverage plugin even if --with-coverage is not specified,
if an option to output coverage reports is passed (--cover-html,
--cover-xml) or if an option to cover files is passed (--cover-packages,
--cover-tests, --cover-inclusive)

Fixes nose-devs#514
@jszakmeister
Copy link
Contributor

I agree this makes it a touch nicer from the command line, but options can be passed from setup.cfg too. We wouldn't want to start running coverage all the time for folks who have options set but are relying on the current behavior of not running coverage until it's asked for.

wiggin15 added a commit to Infinidat/nose that referenced this issue Mar 16, 2014
Enable coverage plugin even if --with-coverage is not specified,
if an option to output coverage reports is passed (--cover-html,
--cover-xml) or if an option to cover files is passed (--cover-packages,
--cover-tests, --cover-inclusive)

Fixes nose-devs#514
wiggin15 added a commit to Infinidat/nose that referenced this issue Jul 31, 2014
Enable coverage plugin even if --with-coverage is not specified,
if an option to output coverage reports is passed (--cover-html,
--cover-xml) or if an option to cover files is passed (--cover-packages,
--cover-tests, --cover-inclusive)

Fixes nose-devs#514
wiggin15 added a commit to Infinidat/nose that referenced this issue Oct 6, 2014
Enable coverage plugin even if --with-coverage is not specified,
if an option to output coverage reports is passed (--cover-html,
--cover-xml) or if an option to cover files is passed (--cover-packages,
--cover-tests, --cover-inclusive)

Fixes nose-devs#514
wiggin15 added a commit to Infinidat/nose that referenced this issue Mar 18, 2015
Enable coverage plugin even if --with-coverage is not specified,
if an option to output coverage reports is passed (--cover-html,
--cover-xml) or if an option to cover files is passed (--cover-packages,
--cover-tests, --cover-inclusive)

Fixes nose-devs#514
wiggin15 added a commit to Infinidat/nose that referenced this issue Apr 5, 2015
Enable coverage plugin even if --with-coverage is not specified,
if an option to output coverage reports is passed (--cover-html,
--cover-xml) or if an option to cover files is passed (--cover-packages,
--cover-tests, --cover-inclusive)

Fixes nose-devs#514
wiggin15 added a commit to Infinidat/nose that referenced this issue Aug 4, 2015
Enable coverage plugin even if --with-coverage is not specified,
if an option to output coverage reports is passed (--cover-html,
--cover-xml) or if an option to cover files is passed (--cover-packages,
--cover-tests, --cover-inclusive)

Fixes nose-devs#514
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

2 participants