Using the Maven Surefire Report plugin


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:

My POM has the following:


Anyone able to help?


Comment actions Permalink

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
Comment actions Permalink

You were correct! thanks!

Comment actions Permalink

Glad I could help :)


Please sign in to leave a comment.