Skip to content

Fix working with --stepwise #376

@adamchainz

Description

@adamchainz

Python Version

No response

Package Version

No response

Description

https://docs.pytest.org/en/6.2.x/cache.html#stepwise

Using --stepwise doesn't seem to work with pytest-randomly at current.

If I have tests A through D that all fail with 'assert 0', but a seed that runs them with D first, it stops after the failure of D but assumes that A through C passed even though they didn't run.

It seems to base its success/fail tracking on the test order pre-shuffle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions