Skip to content

Conversation

@bluetech
Copy link
Member

--lf has a feature where if a certain Module (python file) does not contain any failed tests, it is skipped entirely at the collector level instead of being collected and each item skipped individually. When this happens the collection summary looks like this:

run-last-failure: rerun previous 1 failure (skipped 1 file)

However, this feature didn't work for Modules inside of Packages, only for those directly beneath the Session.

Fix #11054.

`--lf` has a feature where if a certain `Module` (python file) does not
contain any failed tests, it is skipped entirely at the collector level
instead of being collected and each item skipped individually. When this
happens the collection summary looks like this:

    run-last-failure: rerun previous 1 failure (skipped 1 file)

However, this feature didn't work for `Module`s inside of `Package`s,
only for those directly beneath the `Session`.

Fix pytest-dev#11054.
@bluetech
Copy link
Member Author

Actually this only takes care of the issue for a single "level" (Session/Package), but it can still happen between levels. So I'll need to make some further change here. However this part will be needed anyway so it's good to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cacheprovider: --lf file-skipping feature doesn't work for files in packages

2 participants