Skip to content

Could pytest --last-failed skip test collection? #2114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anntzer opened this issue Dec 5, 2016 · 2 comments
Closed

Could pytest --last-failed skip test collection? #2114

anntzer opened this issue Dec 5, 2016 · 2 comments
Labels
type: question general question, might be closed after 2 weeks of inactivity

Comments

@anntzer
Copy link
Contributor

anntzer commented Dec 5, 2016

python 3.5.2, pytest 3.0.4 with no plugins, Arch Linux repo packages

pytest --last-failed currently re-runs a full collection of the test suite, even though it does not need to do so to know which are the tests that need to be run.

@RonnyPfannschmidt
Copy link
Member

Collection determines test IDS, it would be possible to extend looponfail to cut down collection, its impossible to avoid it

@nicoddemus
Copy link
Member

I think we can close this, it is not really possible in the current architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question general question, might be closed after 2 weeks of inactivity
Projects
None yet
Development

No branches or pull requests

3 participants