JUnit Report
With SVRUnit it's possible to create a JUnit XML report file from the test run.
This will be automatically generated in the folder ./reports
within your working directory.
To start with the reporter, simply append the option --report-junit
to the text command.
php svrunit.phar --configuration=./svrunit.xml --report-junit
The output XML file looks like this. It contains an overview of all test suites and their test cases along with their results.
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="SVRUnit Tests" tests="2" time="10" failures="1">
<testsuite name="flex:latest, PHP 8.0" tests="2" time="10">
<testcase name="Xdebug v3.0.3" classname="svrunit" assertions="1" time="5" errors="0"/>
<testcase name="Xdebug not Corrupted" classname="svrunit" assertions="1" time="5" errors="1">
<failure name="Xdebug not Corrupted" type="SVRunit_AssertionException">
Expected: xy
Actual: xyz
</failure>
</testcase>
</testsuite>
</testsuites>