Skip to content

Mark autouse fixtures in --setup-show (and friends) and --fixtures-per-test #14920

Description

@The-Compiler

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: fixturesanything involving fixtures directly or indirectlytopic: reportingrelated to terminal output and user-facing messages and errors

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions