You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by br...@apache.org on 2005/09/19 03:48:45 UTC
svn commit: r290042 - in
/maven/components/trunk/maven-plugins/maven-surefire-plugin: pom.xml
src/main/java/org/apache/maven/test/SurefirePlugin.java
Author: brett
Date: Sun Sep 18 18:48:39 2005
New Revision: 290042
URL: http://svn.apache.org/viewcvs?rev=290042&view=rev
Log:
PR: MNG-577, MNG-901
Submitted by: Johnny R. Ruiz III
Reviewed by: Brett Porter
add XML reporter to the surefire plugin, and improve documentation.
Modified:
maven/components/trunk/maven-plugins/maven-surefire-plugin/pom.xml
maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
Modified: maven/components/trunk/maven-plugins/maven-surefire-plugin/pom.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-surefire-plugin/pom.xml?rev=290042&r1=290041&r2=290042&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-surefire-plugin/pom.xml (original)
+++ maven/components/trunk/maven-plugins/maven-surefire-plugin/pom.xml Sun Sep 18 18:48:39 2005
@@ -37,5 +37,11 @@
<artifactId>surefire-booter</artifactId>
<version>1.3</version>
</dependency>
+ <dependency>
+ <groupId>plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>1.0.3</version>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
</project>
Modified: maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java?rev=290042&r1=290041&r2=290042&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java (original)
+++ maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java Sun Sep 18 18:48:39 2005
@@ -37,7 +37,7 @@
* @requiresDependencyResolution test
* @goal test
* @phase test
- * @description Run tests using surefire
+ * @description Run tests using Surefire
* @todo make version of junit and surefire configurable
* @todo make report to be produced configurable
*/
@@ -45,36 +45,46 @@
extends AbstractMojo
{
/**
- * Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
+ * Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
*
* @parameter expression="${maven.test.skip}"
*/
private boolean skip;
/**
+ * Set this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.
+ *
* @parameter expression="${maven.test.failure.ignore}"
*/
private boolean testFailureIgnore;
/**
+ * The base directory of the project being tested. This can be obtained in your unit test by System.getProperty("basedir").
+ *
* @parameter expression="${basedir}"
* @required
*/
private String basedir;
/**
+ * The directory containing generated classes of the project being tested.
+ *
* @parameter expression="${project.build.outputDirectory}"
* @required
*/
private File classesDirectory;
/**
+ * The directory containing generated test classes of the project being tested.
+ *
* @parameter expression="${project.build.testOutputDirectory}"
* @required
*/
private File testClassesDirectory;
/**
+ * The classpath elements of the project being tested.
+ *
* @parameter expression="${project.testClasspathElements}"
* @required
* @readonly
@@ -96,16 +106,22 @@
private String test;
/**
+ * List of patterns (separated by commas) used to specify the tests that should be included in testing.
+ *
* @parameter
*/
private List includes;
/**
+ * List of patterns (separated by commas) used to specify the tests that should be excluded in testing.
+ *
* @parameter
*/
private List excludes;
/**
+ * ArtifactRepository of the localRepository. To obtain the directory of localRepository in unit tests use System.setProperty( "localRepository").
+ *
* @parameter expression="${localRepository}"
* @required
* @readonly
@@ -120,6 +136,8 @@
private Properties systemProperties;
/**
+ * List of of Plugin Artifacts.
+ *
* @parameter expression="${plugin.artifacts}"
*/
private List pluginArtifacts;
@@ -222,6 +240,9 @@
surefireBooter.addReport( "org.codehaus.surefire.report.ConsoleReporter" );
surefireBooter.addReport( "org.codehaus.surefire.report.FileReporter" );
+
+ surefireBooter.addReport( "org.codehaus.surefire.report.XMLReporter");
+
boolean success;
try
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org