documentation should clarify priority of configuration
enhancementhelp wanted
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...
```python
@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?
关闭于 2025-08-27 6 条评论