You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mark autouse fixtures in --setup-show (and friends) and --fixtures-per-test #14920
In my pytest trainings, people often use --setup-show and/or --fixtures-per-test and then are surprised that they see fixtures they did not specify as arguments. Those are typically autouse fixtures which are provided by plugins, which I have installed for later course chapters.
I think it would help if those commands would show those fixtures as something like [autouse], and/or dim them in the output. What do people think?
I plan to update the reporting for --setup-show and --fixtures-per-test so autouse fixtures are clearly marked, while preserving the current output for explicitly requested fixtures. I’ll add focused regression tests covering autouse fixtures at the relevant scopes and verify the existing test suite.
I would like to investigate this issue and propose a focused change with tests.
My initial plan is to update the fixture reporting for both --setup-show and --fixtures-per-test, marking autouse fixtures clearly while preserving the current output structure. Is this direction still welcome?
I will first prepare the tests locally and wait for maintainer feedback before opening a pull request.
Activity
seanxuu commentedon Aug 26, 2026
I’d like to work on this issue.
I plan to update the reporting for
--setup-showand--fixtures-per-testso autouse fixtures are clearly marked, while preserving the current output for explicitly requested fixtures. I’ll add focused regression tests covering autouse fixtures at the relevant scopes and verify the existing test suite.Please let me know if this direction fits pytest.
0x4B-traveler commentedon Aug 31, 2026
I would like to investigate this issue and propose a focused change with tests.
My initial plan is to update the fixture reporting for both
--setup-showand--fixtures-per-test, marking autouse fixtures clearly while preserving the current output structure. Is this direction still welcome?I will first prepare the tests locally and wait for maintainer feedback before opening a pull request.
0x4B-traveler commentedon Aug 31, 2026
I noticed that seanxuu mentioned working on this issue earlier.
I have prepared a local implementation and focused regression tests for marking autouse fixtures as
[autouse]in both reporting modes.Before opening a PR, would it be useful for me to share this approach or coordinate with seanxuu to avoid duplicated work?