-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
support for [tool:pytest] given/other config files #1831
Comments
right now tool:pytest is a special case only for setup.cfg coming in via autodiscovery |
-c setup.cfg
tox-dev/tox#225 we should add it for tox ini as well |
This is a bug, right? The documentation does not indicate that support for https://docs.pytest.org/en/latest/example/pythoncollection.html#changing-naming-conventions |
@chebee7i its more of a change to enhance sanity - when it first was introduced it did the bad thing, and we want to change it to do a better thing |
Agreed |
this has been implemented |
With
pytest -c setup.cfg
the new[tool:pytest]
section is not recognized.I think it should be recognized for any config file (despite of its name/extension) that is passed in through
-c
. Ignoring the name here is important when using something like-c <(sed s/foo/bar/ setup.cfg)
to pass in a temporary file (which won't have "setup.cfg" as its name).Just add the following to a
setup.cfg
file and then runpytest -c setup.cfg
:It won't complain about the unknown option
--meh
.The text was updated successfully, but these errors were encountered: