-
Notifications
You must be signed in to change notification settings - Fork 213
Merge cov-core and pytest-cov packages and other fixes #58
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
Merge cov-core and pytest-cov packages and other fixes #58
Conversation
The reason for deprecating An alternative would be to keep the behavior as it is and introduce a new parameter - e.g. Or another option would be to always activate the plugin if there is a |
Thanks for contributing, BTW. Looks very great in general 🍰 |
Is there anything left from the todo list in #28 (minus the points which are obviously obsolete)? |
I agree it's not the cleanest cmdline api. Had |
I think this it's missing:
The rest should be fixed. We might need to flatten out a bit the current changelog. |
It's not released yet, only pending in the 2.0 branch ;) |
I guess we can use the classifiers from https://github.com/ionelmc/pytest-cover/blob/master/setup.py ? |
You are right. But what if we just add a Do people want the |
Then it's fixed :) |
I guess this is my favorite right now. Any thoughts or other ideas? |
I suspect explicit opt-out would annoy some people. What disadvantages do we have with the dual |
I'll still think about it. :) But I guess the alternatives are not really better so we can leave it like this. I've added some minor points as todo list to the first post. But in general it looks really great. I think we are almost good to go and can release this soon :) |
…ith no sources specified).
Alright, I've fixed those and squashed a little bit the unforking changes. |
One last small thing: Rename Then I'll merge everything back in master and have a last look before release. Thank you for this great PR 🍰 |
I'll do this on my own, merging it now. |
Merge cov-core and pytest-cov packages and other fixes
Ah yes, I'm a bit slow today. About releasing, this is what I usually do:
|
First, I'm terribly sorry to make a PR like this, I got a bit impatient and there wasn't any activity on
pytest-cov
for a while so I made a fork. This PR includes the changes from that fork. Please don't send me back to the loony bin 😁Changes I did and some of the goals behind them:
pytest-cov 1.x
. No breaking changes, but still bring in the fixes regarding.coveragerc
handling:--cov
will use the sources specified in.coveragerc
. Handling here. This means the--cov-source
option from the 2.0 branch is gone.--cov-report=term
will report missing lines if.coveragerc
hasshow_missing = True
--cov-fail-under
is automatically activated if.coveragerc
hasfail_under = ...
(only if using coverage 4.0)--cov-min
is renamed to--cov-fail-under
to keep consistency with coverage docs (so that users will have an easier time finding the option)..pth
activation. I found a solution that works when installing from install, easy_install, wheels and develop. Uninstall also works, but only for wheels.cov-core
andpytest-cov
packages to simplify things like the release process or compatibility problems caused by mismatched versions. I took an opinionated turn here I know but there's value in focusing on a single test tool.Todo
pytest-cov
", maybe other fixes)