Skip to content

File Modifications During Test Execution #43

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

Open
gunar opened this issue Apr 9, 2025 · 0 comments
Open

File Modifications During Test Execution #43

gunar opened this issue Apr 9, 2025 · 0 comments

Comments

@gunar
Copy link

gunar commented Apr 9, 2025

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).

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