Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.4
-
Fix Version/s: 2.4.2
-
Component/s: Maven Surefire Report Plugin
-
Labels:None
-
Environment:Maven 2.0.8, Linux
-
Complexity:Intermediate
-
Testcase included:yes
-
Number of attachments :
Description
In a multi-module project, since version 2.4, all tests of all modules are run once for each module. This is very bad with many modules & many tests. Attached is a sample project which contains a parent module and two child modules. Each of the child modules contains one JUnit test. mvn clean site runs each test three times (once for the parent and once for each of the two submodules). When changing the surefire-report-plugin to version 2.3, each test is run only once, as it is supposed to
Issue Links
- is related to
-
MNG-2184
Possible problem with @aggregator and forked lifecycles
-
- relates to
-
MJAVADOC-171
Modules in multi-module projects are "built" too often
-
Thanks for filing this bug; I noticed it too but thought it was just
SUREFIRE-257(which is really a bug in core). But I'm able to reproduce your findings that this wasn't a problem in 2.3, so I'll happily take a crack at it.