Skip to content

Deprecating pytest-stepwise in favour for --last-failed -x #14

@nip3o

Description

@nip3o

Once upon a time, quite a few pytest versions ago, pytest-cache was an external plugin that provided the --last-failed flag, which ran only the failing tests from the last test run. The pytest -x flag also existed back then, which exits the run after the first failing test. Combining these didn't work very well, which led to the birth of pytest-stepwise

Since then the cache plugin has become integrated in pytest, and a few releases ago (I haven't been able to find an issue or PR for this), the combination of these two flags seems to work in the same way as Stepwise does - i.e. let's you run the same command multiple times and catch a failing step at a time. I have tested it out myself during the last weeks - not in detail but it works a lot better than I remember it to do.

I think that means that this plugin is not needed anymore, unless someone has a compelling use-case that is not handled by pytest itself (and then that probably means that it should be integrated into pytest rather than here).

Any thoughts or examples of use-cases where the behaviour differs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions