You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2006/02/28 02:00:01 UTC
svn commit: r381517 -
/maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
Author: jvanzyl
Date: Mon Feb 27 16:59:59 2006
New Revision: 381517
URL: http://svn.apache.org/viewcvs?rev=381517&view=rev
Log:
o adding reports required for proper output in forking mode
Modified:
maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
Modified: maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java?rev=381517&r1=381516&r2=381517&view=diff
==============================================================================
--- maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java (original)
+++ maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java Mon Feb 27 16:59:59 2006
@@ -484,11 +484,25 @@
{
if ( printSummary )
{
- surefireBooter.addReport( "org.apache.maven.surefire.report.ConsoleReporter" );
+ if ( forking() )
+ {
+ surefireBooter.addReport( "org.apache.maven.surefire.report.ForkingConsoleReporter" );
+ }
+ else
+ {
+ surefireBooter.addReport( "org.apache.maven.surefire.report.ConsoleReporter" );
+ }
}
else
{
- surefireBooter.addReport( "org.apache.maven.surefire.report.SummaryConsoleReporter" );
+ if ( forking() )
+ {
+ surefireBooter.addReport( "org.apache.maven.surefire.report.ForkingSummaryConsoleReporter" );
+ }
+ else
+ {
+ surefireBooter.addReport( "org.apache.maven.surefire.report.SummaryConsoleReporter" );
+ }
}
if ( reportFormat.equals( "brief" ) )
@@ -511,6 +525,12 @@
surefireBooter.addReport( "org.apache.maven.surefire.report.DetailedConsoleReporter" );
}
}
+
surefireBooter.addReport( "org.apache.maven.surefire.report.XMLReporter" );
+ }
+
+ private boolean forking()
+ {
+ return !forkMode.equals( "none" );
}
}