Maven Surefire Reports

Applies to ReadyAPI 3.53, last modified on June 26, 2024

You can use the Maven Surefire Report plugin to convert the JUnit XML reports created by ReadyAPI to Surefire HTML reports.

This plugin was created by Apache Software Foundation. For more information about the plugin, see the Apache documentation.

In this topic, learn how to create a simple test that generates a Maven Surefire report.


  • Make sure all the requirements for Maven tests are met.

  • Set the reports and outputFolder configuration properties to ${basedir}/target/surefire-reports to let the Surefire plugin locate them.

Start the test

To create a Surefire report, add the site argument to the command you use to start the test. For example:

C:/Work/MvnSample> mvn test site

Locate generated reports

The generated reports are saved in the <project-folder>/target/site folder.

This is a sample pom.xml file that runs a project and generates Surefire reports for it:

<project xmlns="" xmlns:xsi=""


    <!--Add the SmartBear ReadyAPI plugin repository.-->
    <!--Maven will download the plugin from the specified URL.-->

                <!--Plugin groupID used to uniquely identify the project with the plugin.-->
                <!--Plugin artifactId used to find the plugin in the project.-->
                <!--Specifies your ReadyAPI version. Maven will use the appropriate plugin version.-->
                <!--IMPORTANT: Must be the same as your ReadyAPI version.-->
                        <!--Specifies the lifecycle phase to run ReadyAPI tests.-->
                        <!--We recommend using the test phase.-->
                            <!--Do not change. Commands the Maven plugin to run a functional test.-->
                            <!--Required. Specifies the path to the project to be executed.-->
                            <!--For composite projects, specify the folder that contains the project..-->
                            <!--Required for Maven Surefire reports. Must be true.-->
                            <!--Commands ReadyAPI to generate JUnit-style reports.-->
                            <!--Required for reports. Specifies the format of the report.-->
                            <!--Possible values: PDF, XLS, HTML, RTF, CSV, TXT and XML.-->
                            <!--Only available with a Pro license.-->
                            <!--Required for Maven Surefire reports.-->
                            <!--Sets the output folder for reports where Surefire expects them.-->
                                    <!--A folder with ReadyAPI executable files.-->
                                    <!-- Used to run a local installation of ReadyAPI.-->
                                    <value>C:\Program Files\SmartBear\ReadyAPI-3.53.0\bin</value>
        <!--Add Maven Site Plugin.-->
        <!--This plugin improves test stability and prepares test data for Maven Surefire.-->
    <!--Add Maven Surefire Plugin to generate JUnit XML reports.-->
   <!--Command the Site plugin to generate a web site.-->
            <name>Site deployments</name>

See Also

ReadyAPI Test Testing With Maven - Example
Maven Surefire Report Plugin Documentation

Highlight search results