joeyespo / pytest-watch

Local continuous test runner with pytest and watchdog.
MIT License
727 stars 52 forks source link

--pdb behavior #89

Open max-sixty opened 6 years ago

max-sixty commented 6 years ago

I think:

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 https://github.com/joeyespo/pytest-watch/pull/64?

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

max-sixty commented 6 years ago

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 commented 5 years ago

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