How to test every module in my application phpunit - zend framework 2
You can make a testsuite to run a bunch of individual groups of tests all at once. In your phpunit.xml.dist file:
<phpunit bootstrap="phpunit_bootstrap.php"> <testsuites> <testsuite name="all"> <directory>./</directory> </testsuite> <testsuite name="ALL"> <directory>/path/to/module1tests</directory> <directory>/path/to/module2tests</directory> <directory>/path/to/module3tests</directory> <exclude>/path/to/module4tests</exclude> </testsuite> <testsuite name="module1only"> <directory>./module1tests</directory> </testsuite> </testsuites>
And then you can run it with: /path/to/phpunit --testsuite="ALL"
I can't comment yet so another solution to this issue can be found at zend framework 2 + phpunit + multiple modules + continuous integration If you don't want to go through naming each module independently.