Skip to content

Settings under [report] affect running #101

@nedbat

Description

@nedbat

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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions