Settings under [report] affect running · Issue #101 · nedbat/coveragepy (original) (raw)
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.