I was able to change the name of the Surefire report but is it possible to change the title on the HTML report as well?
Like in place of "Surefire Report" I want custom text. I have below in the Surefire plugin and it updates the HTML report name and how to update the title once we open the report and it comes on top of the report as "Surefire Report"?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M7</version>
<configuration>
<outputName>Results-${env} Environment</outputName>
</configuration>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>report-only</goal>
</goals>
</execution>
</executions>
</plugin>
Just passed the -Dsurefire.report.title="test"
via command line and it changed the title.