You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/03/25 22:18:58 UTC
[jira] Commented: (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:comment-tabpanel&focusedCommentId=128585#action_128585 ]
Benjamin Bentmann commented on SUREFIRE-478:
--------------------------------------------
bq. <outputDirectory>/data/reports</outputDirectory>
Possibly a misconfiguration: The leading slash indicates an absolute path on Unix systems. Even though you are running on Windows (where the path will be interpreted a drive-relative), Maven's internal logic will not resolve this path to the project base directory. What if you simply drop the leading slash?
> 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
>
> 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