Using the Maven Surefire Report plugin

Hi,

I'm a beginner so please bear with me.  If there is a more relevant place to post this, or more specific forum, please feel free to point me the way.

I am trying to generate an html test report using the plugin.  When I do a 'Site' from within Intellij, I get .txt and .xml files dropped in the <project>\target\surefire-reports folder, but no HTML report.

I have tried to follow the advice over at Maven: http://maven.apache.org/surefire/maven-surefire-report-plugin/usage.html

My POM has the following:

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.15</version>
            </plugin>
        </plugins>
    </reporting>

Anyone able to help?

Thanks

3 comments

I think you're looking in the wrong place. Try looking in target/site/ for surefire-report.html

According to the docs...

A HTML report should be generated in ${basedir}/target/site/surefire-report.html.


But you're looking in <project>\target\surefire-reports
0

Please sign in to leave a comment.