Try a test first
I would try writing a new phpunit configuration file, say all.xml, indicating the details of the various 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>
Verify that this is running on the command line
$ phpunit -c all.xml
Add to Jenkins
Just add this to your Jenkins configuration. Here is an example if you are using 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>
source share