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
Please sign in to leave a comment.
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
You were correct! thanks!
Glad I could help :)