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:
[bash]
for FILE in $(ls); do phpunit $FILE; done
[/bash]
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?
Thanks Rob,
I have no idea why I needed it / found it useful then. Maybe I needed to run all in one directory, or something.
Unfortunately I don’t know how to organize phpunit tests into suites. Haven’t used phpunit in a while. I’ve used peridot in PHP more recently, and now I use mocha in JavaScript.
Let me know what you find.