How to Automatically re-run our TDD tests when changing a file


In this episode I will show you a very quick way to use Grunt to automate the running and re-running of our PHPUnit / Codeception unit test suite whenever you alter / save / update a file.

This is cool as it means you can constantly monitor the progress of your code changes without having to periodically interrupt your workflow as you re-run your test suite. Ultimately, the less friction involved in running your tests, the more likely you are to run and use them, and the better your code will become.

Code For This Video

Get the code for this video.

Episodes

# Title Duration
1 How to Automatically re-run our TDD tests when changing a file 03:12