[Feature request] Watch for changes
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 11.7k
- Forks
- 538
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 8
Description
User story
- AS A software engineer doing test-driven development,
- I WANT TO run Pest with a
--watchflag and let Pest watch for changes and re-run tests, - SO THAT I don't need to switch to the terminal and manually re-run the tests after every single code change.
Acceptance criteria
- GIVEN I have run Pest with a
--watchflag, - WHEN I make a code change,
- THEN the tests are automatically re-run.
Context
There was a plugin called pestphp/pest-plugin-watch, and that worked very well, but it has been deprecated and archived. It is not compatible with Pest v4. We need first-class support for the ability to watch for changes and re-run the tests.
Related
#1376
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the requirements in this issue and the related issue #1376, then investigate how Pest handles command-line flags and test execution. Done means Pest v4 accepts --watch, detects code changes, and automatically re-runs the tests without manual terminal intervention.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- cli, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100