You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Shanahan (JIRA)" <ji...@codehaus.org> on 2008/03/26 22:07:58 UTC

[jira] Closed: (SUREFIRE-478) Specifying true plus an results in an empty surefire-report.html file

     [ http://jira.codehaus.org/browse/SUREFIRE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Shanahan closed SUREFIRE-478.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.2

> Specifying <aggregate>true</aggregate> plus an <outputDirectory> results in an empty surefire-report.html file
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-478
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-478
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: report plugin
>    Affects Versions: 2.4.2
>         Environment: Windows XP SP2;  jdk1.5.0_14; Maven 2.0.8
>            Reporter: Robert Shanahan
>             Fix For: 2.4.2
>
>
> The following configuration snippet, from the parent pom of a multi-module project,  results in an empty surefire-report.html file. Using default output directory works just fine with aggregate set to true. Setting aggregate to false with a specified output directory has the same result as specifying no output directory and aggregate to false, i.e. a non-empty surefire-report.html file is created, but it has no test results since it is the top level pom.
>     <build>
>        <plugins>
>           <plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
>           </plugin>
>           <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-report-plugin</artifactId>
>                 <configuration>
>                     <outputDirectory>/data/reports</outputDirectory>
>                     <aggregate>true</aggregate>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <phase>test</phase>
>                         <goals>
>                             <goal>report-only</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>              </plugin>                    
>           </plugins>
> 	</build>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira