pytest-watcher
pytest-watcher copied to clipboard
File Modifications During Test Execution
I'd like to request a feature / bugfix. When tests are undergoing, and files are changed mid run, ptw should queue another run immediately next.
Actual vs Expected:
1. I change a file
2. `ptw` identifies it and triggers a test run
3. Tests start running (integration tests take longer)
4. I change another file before tests finish running
5. `ptw` logs `[ptw] ./path/myfile.py modified`
- 6. `ptw` finishes the test run and waits for new file changes
+ 6. `ptw` immediately starts another test run since files were changed during the previous run
Bonus: ptw could stop the current test run and start from scratch (i.e. no need to wait for the previous run to finish).