-
-
Notifications
You must be signed in to change notification settings - Fork 448
Failing to omit files through setup.cfg #1558
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
Comments
The interpretation of wildcards changed between 6.x and 7.x. It will work if you use |
I think we could use a more complete description of the wildcard changes, and how to adjust settings when moving from 6.x to 7.x. |
Working on this for the Pycon2023 sprints |
Indeed, it works 👍 |
Describe the bug
In my
setup.cfg
file, I specify that i want to omit my test files when measuring coverage:While this worked a few version ago (at least in 6.5), current version (7.1.0) does not omit the tests files.
This can be fixed with the following setup
Although it is possible to make everything work (as specified), I am surprised that my previous configuration no longer works.
To Reproduce
I'm using python 3.8.14 with coverage 6.5 and pytest 7.2.1.
The command used is:
coverage run -m pytest --cov=my_package --cov-fail-under=95 --cov-config=setup.cfg
Expected behavior
I would expect that omit through
*tests/*
would omit every files contained inmy_package/tests/
The text was updated successfully, but these errors were encountered: