Skip to content

[RFC] --reruns-on-exitfirst: set reruns with --exitfirst / -x #249

Description

@tony

Assume pyproject.toml:

[tool.pytest.ini_options]
addopts = "--reruns 2"

Current behavior

Right now, passing --exitfirst / -x will rerun twice.

Better: --reruns-on-exitfirst 0

This way, the user can set the reruns with exitfirst is used so it instantly errors. It preserves the default behavior.

--exitfirst's docs:

  -x, --exitfirst       Exit instantly on first error or failed test

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions