run all zend framework2 unit tests
First, get the test to run together
I would try writing a new phpunit config file, say all.xml, giving the details of the different test files.
<phpunit> <testsuite name="Module1"> <directory>./module1</directory> </testsuite> <testsuite name="Module2"> <directory>./module2</directory> </testsuite> <testsuite name="Module2"> <directory>./module3</directory> </testsuite></phpunit>
Test that this runs ok on the command line
$ phpunit -c all.xml
Add to Jenkins
Just add this into you Jenkins config. Here is an example if you use an Ant xml file:
<target name="phpunit" description="Run unit tests with PHPUnit"> <exec executable="phpunit" failonerror="true"> <arg line=" -c tests/all.xml" /> </exec></target>