joeyespo / pytest-watch

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

Pytest-watch will not exit with Ctrl+C (sometimes) #107

Open richardARPANET opened 4 years ago

richardARPANET commented 4 years ago
Ubuntu 18.04
pytest-watch==4.2.0
pytest==5.1.2

Seemingly randomly at times I cannot exit ptw using Ctrl+C in the terminal. I then need to killall ptw to exit it.

Has anyone else experienced this issue?

richardARPANET commented 4 years ago

For anyone else seeing this bug, you can just use 'entr' instead of pytest-watch which doesn't suffer from this issue:

sudo apt install entr

find . -name '*.py' | entr pytest tests/test_something.py

edit: actually entr won't work with pdb, so try this.