I figured out this bash command at some point when I needed to run all my PHPUnit tests in a directory at once, tweeted about it, but I keep having a hard time googling for it since.
Here it is:
for FILE in $(ls); do phpunit $FILE; done
A Winnipeg Web programmer. Proud member of the Skip the Dishes team. Experienced with Web technologies, e.g. HTML5, CSS, ( Server-side ) JS, PHP, WordPress, MVC, etc.
View all posts by Dan Bernardic
3 thoughts on “PHPUnit – Run all tests in current directory”
PHPUnit – Run all tests in current directory: http://t.co/GhRaDgNy
That seems terrible. If you have a lot of tests, you may or may not notice if test 1 is failing in all the burb from tests 2 – 1000. Isn’t there a phpunit way to define suites and run them?
I have no idea why I needed it / found it useful then. Maybe I needed to run all in one directory, or something.
Let me know what you find.