Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.6
-
Fix Version/s: None
-
Component/s: Maven Surefire Report Plugin
-
Labels:None
-
Environment:Maven 2.2.1
-
Complexity:Intermediate
-
Testcase included:yes
-
Number of attachments :
Description
When the report aggregation is enabled:
1. On module level empty surefire report page is generated
2. On top level surefire report with 0 tests is generated
Surefire report plugin configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>$
</version>
<configuration>
<reportsDirectories>
<reportsDirectory>$
<reportsDirectory>${project.build.directory}
/failsafe-reports/</reportsDirectory>
</reportsDirectories>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>report-only</report>
</reports>
</reportSet>
</reportSets>
</plugin>
To reproduce the issue:
1. svn checkout http://m4enterprise.googlecode.com/svn/trunk/ m4enterprise-read-only
2. call "mvn install" against corporate-pom and modular-war modules.
3. call "mvn site:stage -Daggregate=true" against modular-war.
4. check the reports in modular-war/target/stage directory.
I was looking for description how to configure surefire and failsafe together for multi module project. No luck ![]()
Thanks,
Marcin
Issue Links
- duplicates
-
SUREFIRE-570
Empty surefire reports when a multi-module project is ran with multiple report directories in surefire-report configuration
-
Screenshot with surefire report pages.