Open
Description
What's the problem this feature will solve?
A common workflow is to re-run locally tests that have failed on CI. When there are a number of failures, it is not straightforward to do so, as it requires a lot of copy/paste test ids.
Describe the solution you'd like
If the user is running with -ra
on CI, the summary output could be used as input to pytest to only run the failed tests. Then the user can copy/paste the summary output into a file, and call pytest with -x
/--sw
in order to resolve the tests bit by bit locally.
I think this could be done via a flag:
--from-summary-output=file.txt
--from-summary=file.txt
We don't need a short version for this flag I believe.
Additional context
Idea came from this discussion in the mailing list.