microsoft / microsoft/playwright-pytest
[FR] Support for working with pytest-rerunfailures to only create --output on true failure
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 563
- Forks
- 90
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Description
It would be nice if this plugin could work nicely with pytest-rerun failures to mitigate flaky tests.
In the current state when using both plugins, when a test fails and it re runs the failure, the --output artifact such as the trace or a video is still created for each re run attempt, it would be nice to have an option to only retrieve the true failure and not the re runs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the interaction between pytest-rerunfailures and the plugin's --output option, observing when trace or video artifacts are created across rerun attempts. Then inspect the plugin entry points and lifecycle handling involved in artifact collection. Done means an option or behavior allows artifacts to be retained only for the true final failure rather than each rerun.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, python
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100