-
-
Notifications
You must be signed in to change notification settings - Fork 443
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
When using --source, --include is silently ignored #265
Comments
@ALonghi Unfortunately, the conflict could be in the configuration file also. And run uses with --source or --include, but "report" uses only --include. I'll have to think more about what is a problem here, and what to do about it. |
Original comment by Loic Dachary (Bitbucket: dachary, GitHub: dachary) For the record https://bitbucket.org/ned/coveragepy/pull-requests/105/source-and-include-are-mutually-exclusive/diff should fix this issue |
--source and --include are mutually exclusive #265 Add a sanity_check function to CoverageConfig to perform sanity checks Raise an error if --source and --include are both set. The config tests are amended because some of them have both source and Based on the original patch from Nathan Land close #265 → <<cset 4aced78ac2a1 (bb)>> |
Fixed in 4aced78ac2a1 (bb) |
This fix was released as part of Coverage.py 4.3. |
Original comment by Loic Dachary (Bitbucket: dachary, GitHub: dachary) The fix was incorrect and the regression was reported at https://bitbucket.org/ned/coveragepy/issues/541/coverage-43-breaks-nosetest-with-coverage. It should be re-opened. A proper implementation should separate --include into --run-include & --report-include because the options are not unique to a command / action. |
Original comment by Loic Dachary (Bitbucket: dachary, GitHub: dachary) Reverted by https://bitbucket.org/ned/coveragepy/commits/d427811cbc79c4845ae2983c12b8775ee3c7859c |
Original comment by Loic Dachary (Bitbucket: dachary, GitHub: dachary) New draft implementation at https://bitbucket.org/ned/coveragepy/pull-requests/119/source-and-include-are-mutually-exclusive/diff |
→ <<cset 9519784205ba (bb)>> |
Belatedly add a test for #541, so we can fix #265 for real → <<cset c986bd0295a9 (bb)>> |
This is fixed again in 9519784205ba (bb). |
Once --source is specified, --include is ignored. If the user specifies both, this shouldn't happen silently. A warning or error is appropriate.
The text was updated successfully, but these errors were encountered: