Open
Description
It looks like the html reporter does not handle tests with the outcome retried
.
It's quite easy to reproduce:
- Create a failing test with the mark
@pytest.mark.flaky(retries=3, delay=1)
- Run the test and wait for it to fail so that it is retried
- Pytest crashes with:
File "/__w/xi/xi/tests/venv/lib/python3.9/site-packages/pytest_html/report_data.py", line 94, in outcomes
self._outcomes[outcome.lower()]["value"] += 1
KeyError: 'retried'
Metadata
Metadata
Assignees
Labels
No labels