-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Confusing interaction between rootdir and pytest.ini #6376
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
I was experiencing troubles with understanding of what |
if we change the meaning, we should pick a good name, and deprecate the old argument |
Any suggestions @RonnyPfannschmidt ? I'm thinking this would be a good addition to 6.0. |
Another issue related to this: #7888 |
Uh oh!
There was an error while loading. Please reload this page.
From #6359 (comment):
I've seen more than one issue popping up about this confusion: people assume that
--rootdir mydir
implies that pytest will look forpytest.ini
files and start collection frommydir
, which is not the case at all currently.I think we should change the meaning of
--rootdir
the option somehow, because I believe it is the main source of confusion, while I don't think it happens whenrootdir
is found automatically.An initial proposal:
--rootdir
when given:config.rootdir
to that value (of course).--rootdir
and upwards forpytest.ini
files.testpaths
, where collection will be assumed to start from--rootdir
.Thoughts?
It is a change in existing behavior, but I think
--rootdir
is rarely used, and when used people are usually confused by it.The text was updated successfully, but these errors were encountered: