I have a jenkins setup that runs some unit tests with PHPUnit.
I would like each unit testcase to be saved as a separate tap result file.
E.g. the results of testOneTest.php and testTwoTest.php will be saved as testOneTest.tap and testTwoTest.tap respectively. This presents build results much better in the Jenkins UI.
I have defined an XML configuration file for PHPUnit, but from the documentation, I can only see the option to save as a single tap result file:
<log type="tap" target="/tmp/logfile.tap"/>
Is it possible to save multiple TAP results?
Cheers.
If you’re using XML configuration files, just create two different configuration files with different output names. Depending on how you invoke phpunit, then it could look like this:
You also could just give the output parameter to phpunit: