Skip to content
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

Documentation: Needs to be updated to reflect how --confcutdir works since 7.4.0 #12857

Open
sdondley opened this issue Oct 7, 2024 · 0 comments
Labels
type: docs documentation improvement, missing or needing clarification

Comments

@sdondley
Copy link

sdondley commented Oct 7, 2024

I have 7.2.2 of pytest installed. With a conftest installed in each dir above where I'm running tests, I see:

> $ pytest --version                                                                                             
pytest 7.2.2
CONFTEST ../../ LOADED
CONFTEST .. LOADED
CONFTEST . LOADED

But with 8.3.3 run from the same directory:

(test_env) > $ pytest --version                                                                         [±main ●]
CONFTEST . LOADED

With 8.3.3, only the conftest in the current directory is loaded unless I explicitly set --confcutdir.

This is the result of change #11043. See https://docs.pytest.org/en/latest/changelog.html#id213 for more details.

This was a source of great frustration and confusion. It took me a while to figure out especially since I'm new python. The docs here need to be updated to reflect this important change in behavior:

https://docs.pytest.org/en/stable/how-to/writing_plugins.html#plugin-discovery-order-at-tool-startup

@Zac-HD Zac-HD added the type: docs documentation improvement, missing or needing clarification label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: docs documentation improvement, missing or needing clarification
Projects
None yet
Development

No branches or pull requests

2 participants