Skip to content
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

stepwise: also remember last successful test for continuation #4992

Closed
blueyed opened this issue Mar 24, 2019 · 2 comments
Closed

stepwise: also remember last successful test for continuation #4992

blueyed opened this issue Mar 24, 2019 · 2 comments
Labels
type: enhancement new feature or API change, should be merged into features branch

Comments

@blueyed
Copy link
Contributor

blueyed commented Mar 24, 2019

I think it would be useful if the stepwise plugin would also take into account successful tests.

A use case is running all tests, Ctrl-C'ing them (KeyboardInterrupt), but then wanting to continue from where they stopped. For this session.exitstatus = 2 (interrupted) could be used in pytest_sessionfinish.

@blueyed blueyed added the type: enhancement new feature or API change, should be merged into features branch label Mar 24, 2019
@graingert
Copy link
Member

graingert commented Nov 7, 2019

@blueyed I think stepwise needs to remember all tests and their state, "passed", "failed", "skipped", "pending"

This way it can handle:

  • the failed test being renamed
  • new tests added "in front" of the step-failing test
  • xdist tests failing "in front" of the step-failing test, and the step failing test failing after a pending test
  • pytest randomly

@graingert
Copy link
Member

"--lf" and "--sw" should share the same database

@blueyed blueyed closed this as completed Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement new feature or API change, should be merged into features branch
Projects
None yet
Development

No branches or pull requests

2 participants