Skip to content

documentation should clarify priority of configuration #295

@ToddBradley

Description

@ToddBradley

What is the priority of configuration settings? The documentation for pytest-rerunfailures doesn't say.

For example, if I decorate a test case like this...

@pytest.mark.flaky(reruns=3)
def test_example():

...and configure my pytest.ini file like this...

[pytest]
reruns = 4

...and run tests like this...

pytest --reruns 5

How many reruns should I expect? I assume one of those takes top priority over the others, but which is it? And which is 2nd priority and 3rd?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions