Skip to content

Flag to run tests based on the summary output of a previous run #12619

Open
@nicoddemus

Description

@nicoddemus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions