Last Updated: February 25, 2016
·
2.438K
· gjerokrsteski

For lazy unit testers - running phpunit in a loop

For lazy unit testers: running phpunit in a loop any 20 seconds and let it inform you when you broke something.

while true; do phpunit; if [ $? -ne 0 ]; then break; else sleep 20; fi; done;

2 Responses
Add your response

I'd only run the tests if something changes:

pywatch “clear && phpunit” ./src ./tests

over 1 year ago ·

OK. This tip is useful if you develop in a test-driven manner :-)

over 1 year ago ·