SVRUnit
  • Welcome
  • Installation
    • Installation
    • First Run
  • Use Cases
    • Verify Server
    • Verify Server for Project
    • Post Deployment Tests
    • Unit Test Docker Image
    • Testing your frameworks
  • Configuration
    • Configuration
  • Commands
    • list:suites
    • list:groups
    • test
  • Assertions
    • Command
    • Directory Exists
    • File Exists
    • File Content
    • File Permissions
    • PHP INI
    • PHP Modules
  • Reports
    • HTML Report
    • JUnit Report
  • Resources
    • svrunit.com
    • Github
Powered by GitBook
On this page

Was this helpful?

  1. Reports

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 ./reportswithin 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>

PreviousHTML Report

Last updated 4 years ago

Was this helpful?