dsx9bq
Last Updated: February 25, 2016
·
1.855K
· gjerokrsteski
F8c4fdde8545731ac4a77b52e4896595

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;
Say Thanks
Respond

2 Responses
Add your response

3263
C99f1da7c3e2b7f49f4eed8f577dcc4e

I'd only run the tests if something changes:

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

over 1 year ago ·
3264
F8c4fdde8545731ac4a77b52e4896595

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

over 1 year ago ·