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

Settings under [report] affect running #101

Closed
nedbat opened this issue Dec 10, 2010 · 3 comments
Closed

Settings under [report] affect running #101

nedbat opened this issue Dec 10, 2010 · 3 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Dec 10, 2010

Originally reported by Geoff Bache (Bitbucket: geoffbache, GitHub: Unknown)


In my coveragerc file, it looks like I can do something like this:

[run]
source = /path/to/dir1,/path/to/dir2

[report]
include = /path/to/dir1/*

but this doesn't seem to work, as the include setting from [report] is applied also when running, causing everything under dir2 to be discarded.

Looking in the code in config.py, both "include" and
"omit" populate the same variable, irrespective of whether they are found in a [run] or [report] section.

If separate settings are allowed, they should surely behave differently.


@nedbat
Copy link
Owner Author

nedbat commented Oct 24, 2017

close #265
close #101

→ <<cset 9519784205ba (bb)>>

@nedbat
Copy link
Owner Author

nedbat commented Oct 24, 2017

This is (finally) fixed in 9519784205ba (bb)

@nedbat
Copy link
Owner Author

nedbat commented Nov 5, 2017

This has shipped in version 4.4.2

@nedbat nedbat closed this as completed Nov 5, 2017
@nedbat nedbat added major bug Something isn't working labels Jun 23, 2018
agronholm added a commit to agronholm/coveragepy that referenced this issue Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant