You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposal is to send SIGTERM to the pytest process when pytest-watch observes a file change. It'll then wait for the process to finish before starting the new cycle.
This will solve #23 as well as any other quirky behavior that comes from having two pytest instances running the same test suite.
This could also help with #21. The underlying question is what to do when a test initiates an interactive session like pdb. If pdb ignores our termination signal, we're done. If not, we may also need a --full CLI argument to tell pytest-watch to wait out the full test session before starting the new one. Similar to how pytest automatically adds-s when you use --pdb, pytest-watch can automatically add --full when --pdb is present in pytest's argument list or in the config file.
The text was updated successfully, but these errors were encountered:
The proposal is to send
SIGTERM
to the pytest process when pytest-watch observes a file change. It'll then wait for the process to finish before starting the new cycle.This will solve #23 as well as any other quirky behavior that comes from having two pytest instances running the same test suite.
This could also help with #21. The underlying question is what to do when a test initiates an interactive session like
pdb
. Ifpdb
ignores our termination signal, we're done. If not, we may also need a--full
CLI argument to tell pytest-watch to wait out the full test session before starting the new one. Similar to how pytest automatically adds-s
when you use--pdb
, pytest-watch can automatically add--full
when--pdb
is present in pytest's argument list or in the config file.The text was updated successfully, but these errors were encountered: