Skip to content

--lfnf does nothing unless you also pass --lf #11346

@DetachHead

Description

@DetachHead

this will run every test regardless of if there were any previous failures

pytest --lfnf=none

i have to pass both arguments for it to work:

pytest --lf --lfnf=none

i'm not sure if this is intended functionality for whatever reason, but if it is, it should be documented in the --help description. the current documentation seems a bit unclear:

  --lfnf={all,none}, --last-failed-no-failures={all,none}
                        Which tests to run with no previously (known) failures

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: docsdocumentation improvement, missing or needing clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions