Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the icons for the resulted maven-surefire-report-plugin

I'm using maven-surefire-report-plugin in order to generate the unit tests report. This is working fine however the report contains links to images which are not presented. How can I make maven copy the icons required for the report? Should I use skin? I tried it without success. Here is the maven-surefire-report-plugin definition:

 <reporting>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <version>2.16</version>
            <configuration>
                <showSuccess>true</showSuccess>
            </configuration>
        </plugin>

    </plugins>
</reporting>

I tried to add skin plugin but it didn't affect the report:

 <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-site-plugin</artifactId>
       <dependencies>
           <dependency>
               <groupId>org.apache.maven.skins</groupId>
               <artifactId>maven-application-skin</artifactId>
               <version>1.0</version>
           </dependency>
       </dependencies>
 </plugin>

What is missing to present the report with the images?

like image 547
Nava Polak Onik Avatar asked Jan 29 '14 13:01

Nava Polak Onik


3 Answers

The question is probably too old, but I had the same problem and I found this answer. The command mvn site -DgenerateReports=false generates only css and images for surefire-report.html and works fine.

like image 168
newtester Avatar answered Oct 11 '22 11:10

newtester


You must genereate the site using the Site Plugin:

mvn site

If you have already generated the reports, then you can speed this up by skipping this:

mvn site -DgenerateReports=false
like image 26
Attila Avatar answered Oct 11 '22 11:10

Attila


mvn site -DgenerateReports=false

like image 42
Özlem Pamuk Avatar answered Oct 11 '22 09:10

Özlem Pamuk