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;Written by Gjero Krsteski
Related protips
2 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Did you know?
PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#