Skip to content

--last-failed and --failed-first precedence #2308

Closed
youtux/pypi-notifier-watchlist
#3
@ojii

Description

@ojii

If I run pytest with --failed-first and --last-failed, all tests are run. This is unintuitive for me, since I actually include --failed-first in my pytest.ini so it defaults to running failed tests first. However, sometimes I just want to run the failed tests so I add --last-failed at the commend line, but that has no effect.

I think this behaviour should be changed to --last-failed taking precedence over --failed-first.

I'd be happy to provide a patch for this if there's an agreement that this is should be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions