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

--pdb behavior #89

Open
max-sixty opened this issue Mar 30, 2018 · 2 comments
Open

--pdb behavior #89

max-sixty opened this issue Mar 30, 2018 · 2 comments

Comments

@max-sixty
Copy link

I think:

  • ptw --pdb -- [pytest args] waits for pdb to exit before re-running the tests
  • ptw -- --pdb restarts the test on any change, even if you're in the middle of debugging

Is that correct?

I actually find it v helpful - the second is useful if you always want a debugger ready to go with the latest as soon as you need one. But not sure that's consistent with #64?

If so, we could make that explicit - I only discovered by accident

@max-sixty
Copy link
Author

This seems to have reverted to the first behavior in 4.2.0, which is a shame. Is there any way to get the second?

@max-sixty
Copy link
Author

Would you take a PR reverting to the old behavior, with the above added as instructions?

That way people can choose either option - if pdb is a ptw arg, then it'll wait on changes; if pdb is a pytest arg, it'll restart on changes as it generally does

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

No branches or pull requests

1 participant