# 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.

```bash
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.

```markup
<?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>
```

�


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.svrunit.com/reports/junit-report.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
