Skip to content

Please make it possible to override the rerun count globally #306

@mgorny

Description

@mgorny

Consider the following sample:

import pytest


@pytest.mark.flaky
def test_foo():
    assert False


@pytest.mark.flaky(reruns=3)
def test_bar():
    assert False

This causes the tests to be rerun exactly once and 3 times, independently of --reruns=... parameter on the CLI. I would find it really helpful to be able to override the upstream defaults somehow via the command-line, as our downstream workflows often suffer from much more flakiness than the pristine upstream CI.

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