diff --git a/surefire/.cvsignore b/surefire/.cvsignore deleted file mode 100644 index 8eeb0ff8..00000000 --- a/surefire/.cvsignore +++ /dev/null @@ -1,7 +0,0 @@ -target -velocity.log -maven.log -.classpath -.project -*.ipr -*.iws diff --git a/surefire/plugin.jelly b/surefire/plugin.jelly deleted file mode 100644 index fc59cddf..00000000 --- a/surefire/plugin.jelly +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No test source files to compile. - - - - - - - - - - - ${surefire.setProject(pom)} - ${surefire.execute()} - - - - - - - - - - - - - - No tests to run. - - - - - - - - - - - - No tests to run. - - - - - - - - - - - - - No tests to run. - - - - - - - [deprecated] please use the test:single goal instead - - - - - - - [deprecated] please use the test:match goal instead - - - - - - Used by eclipse to drag in test plugin context - - - - - - - - - - - - - - - - - - - - - - - diff --git a/surefire/plugin.properties b/surefire/plugin.properties deleted file mode 100644 index fa4cd8e4..00000000 --- a/surefire/plugin.properties +++ /dev/null @@ -1,14 +0,0 @@ -# ------------------------------------------------------------------- -# P L U G I N P R O P E R T I E S -# ------------------------------------------------------------------- -# JUnit test plugin. -# ------------------------------------------------------------------- - -maven.junit.fork = no -maven.junit.dir = ${basedir} -maven.junit.usefile = true -maven.junit.printSummary=true -maven.test.dest = ${maven.build.dir}/test-classes -maven.test.reportsDirectory = ${maven.build.dir}/test-reports -maven.test.skip = false -maven.junit.jvmargs= \ No newline at end of file diff --git a/surefire/project.properties b/surefire/project.properties deleted file mode 100644 index b3a3ca54..00000000 --- a/surefire/project.properties +++ /dev/null @@ -1,7 +0,0 @@ -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- -maven.xdoc.date=left -## maven.xdoc.version=${pom.currentVersion} -maven.license.licenseFile=${basedir}/../../../LICENSE.txt - diff --git a/surefire/project.xml b/surefire/project.xml deleted file mode 100644 index da4bcecf..00000000 --- a/surefire/project.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - ../project.xml - 3 - maven-surefire-plugin - maven-surefire-plugin - Maven SureFire Plug-in - 1.0-SNAPSHOT - - Run JUnit tests - http://maven.apache.org/reference/plugins/surefire/ - /www/maven.apache.org/reference/plugins/surefire/ - - scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/surefire/ - http://cvs.apache.org/viewcvs/maven/src/plugins-build/test/ - - - - - - maven - maven-model - 2.0-SNAPSHOT - - - maven - maven-project - 2.0-SNAPSHOT - - - surefire - surefire-booter - 1.0 - - - diff --git a/surefire/src/main/org/apache/maven/test/SurefirePlugin.java b/surefire/src/main/org/apache/maven/test/SurefirePlugin.java deleted file mode 100644 index f0c6e008..00000000 --- a/surefire/src/main/org/apache/maven/test/SurefirePlugin.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.apache.maven.test; - -import org.apache.maven.artifact.MavenArtifact; -import org.apache.maven.project.MavenProject; -import org.codehaus.surefire.SurefireBooter; - -import java.io.File; -import java.util.Iterator; -import java.util.List; - -/** - * - * - * @author Jason van Zyl - * - * @version $Id: SurefirePlugin.java,v 1.1 2004/02/01 21:06:09 jvanzyl Exp $ - */ -public class SurefirePlugin -{ - private MavenProject project; - - public void setProject( MavenProject project ) - { - this.project = project; - } - - public void execute() - throws Exception - { - String mavenRepoLocal = project.getProperty( "maven.repo.local" ); - - String basedir = project.getFile().getParentFile().getPath(); - - System.setProperty( "basedir", basedir ); - - List includes = project.getBuild().getUnitTest().getIncludes(); - - List excludes = project.getBuild().getUnitTest().getExcludes(); - - SurefireBooter surefireBooter = new SurefireBooter(); - - surefireBooter.addBattery( "org.codehaus.surefire.battery.DirectoryBattery", new Object[]{basedir, includes, excludes} ); - - surefireBooter.addClassPathUrl( new File( mavenRepoLocal, "junit/jars/junit-3.8.1.jar" ).getPath() ); - - surefireBooter.addClassPathUrl( new File( mavenRepoLocal, "surefire/jars/surefire-1.0.jar" ).getPath() ); - - surefireBooter.addClassPathUrl( new File( basedir, "target/classes" ).getPath() ); - - surefireBooter.addClassPathUrl( new File( basedir, "target/test-classes" ).getPath() ); - - for ( Iterator i = project.getArtifacts().iterator(); i.hasNext(); ) - { - MavenArtifact artifact = (MavenArtifact) i.next(); - - surefireBooter.addClassPathUrl( artifact.getFile().getPath() ); - } - - surefireBooter.addReport( "org.codehaus.surefire.report.ConsoleReport" ); - - surefireBooter.run(); - } -} diff --git a/surefire/swap-plugin b/surefire/swap-plugin deleted file mode 100755 index dc2217e6..00000000 --- a/surefire/swap-plugin +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -rm -rf target - -maven jar:jar - -( cd ~/.maven/plugins ; rm -rf maven-test-plugin* ) - -rm -f ~/maven/plugins/maven-test-plugin*.jar - -cp target/maven-test-plugin*.jar ~/maven/plugins - -rm -f ~/.maven/plugins/*.cache diff --git a/surefire/xdocs/.cvsignore b/surefire/xdocs/.cvsignore deleted file mode 100644 index cb6131bb..00000000 --- a/surefire/xdocs/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -stylesheets diff --git a/surefire/xdocs/changes.xml b/surefire/xdocs/changes.xml deleted file mode 100644 index 8f8c4fb7..00000000 --- a/surefire/xdocs/changes.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - Changes - dIon Gillard - - - - - - Apply MAVEN-309. Reorganise classpaths so that it's test, build, dependencies - and then JUnit - - - You can now specify whether the source (java) or classes (class) files - are searched when using the test plugin via the property: - maven.test.search.classdir. It defaults to use (java) to preserve - backwards compatibilty. Using (class) allows you to work with alternative - languages that compile to bytecode like - Groovy - - - Check if unitTest tag is present in pom before copy resources. - - - - - Add jvmarg support for junit. - Add properties documentation. - - - - - Fixed classpath for test:ui, test:single and test:match goals. - - - Added xmlapis and xerces to project dependencies as per MAVEN-106 - bug report - - - - - The test plugin now works again if the project has not - tests defined. The introduction of the <test:test-resources> - goal had broken this feature. - - - - - diff --git a/surefire/xdocs/goals.xml b/surefire/xdocs/goals.xml deleted file mode 100644 index 5c2e2c53..00000000 --- a/surefire/xdocs/goals.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Maven test Plug-in Goals - dIon Gillard - - - - - test - Test the application - - - test:compile - Compile the TestCases and TestSuites - - - test:match - Execute all the tests matching the given 'testmatch' variable - - - test:match-test - [deprecated] please use the test:match goal instead - - - test:prepare-filesystem - Create the needed directory structure - - - test:single - Execute a single test defined using the 'testcase' variable - - - test:single-test - [deprecated] please use the test:single goal instead - - - test:test - Test the application - - - test:test-resources - Copy any resources that must be present for run tests - - - test:ui - Starts the Swing TestRunner front end - - - - \ No newline at end of file diff --git a/surefire/xdocs/index.xml b/surefire/xdocs/index.xml deleted file mode 100644 index b2ee037b..00000000 --- a/surefire/xdocs/index.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - Maven Test Plugin - Jason van Zyl - - - -
-

- This plug-in provides your basic JUnit testing facilities. -

-
- -
diff --git a/surefire/xdocs/navigation.xml b/surefire/xdocs/navigation.xml deleted file mode 100644 index 1f8d81ee..00000000 --- a/surefire/xdocs/navigation.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - Maven Test Plugin - - - - - - - - - - - - diff --git a/surefire/xdocs/properties.xml b/surefire/xdocs/properties.xml deleted file mode 100644 index f9bed713..00000000 --- a/surefire/xdocs/properties.xml +++ /dev/null @@ -1,207 +0,0 @@ - - - - - Test Properties - Stéphane MOR - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?Description
maven.junit.forkYes - When using Java 1.4, it may be necessary to fork the JUnit - tests to prevent XML parser issues. The default value is - no. -
maven.junit.dirYes - The directory to invoke the VM in. (ignored if fork is disabled). - The default value is ${basedir}. -
maven.junit.usefileYes - If this value is set to false, JUnit test run details will appear on - the console as the tests are executed. If not, they are stored in - a file in the test-reports directory. The default value - is true. -
maven.junit.printSummaryYes - If this value is set to false, JUnit test run details will not - include test summary information for a suite. Default value is - true. This parameter corresponds to the JUnit Ant - task printSummary attribute. -
maven.test.destYes - Specifies the unit test classes directory. This is the - location where the java classes for the test source - code will be generated to. The default value is - ${maven.build.dir}/test-classes. -
maven.test.skipYes - Set this to 'true' to bypass unit tests entirely. Its use - is NOT RECOMMENDED, but quite convenient on occasion. -
maven.test.failure.ignoreYes - Set this to any value to ignore a failure during testing. - Its use is NOT RECOMMENDED, but quite convenient on occasion. -
maven.test.sourceYes -

- Provide source compatibility with a specific release -

-

- Corresponds to the source attribute for the ant - javac - task. -

-
maven.iutest.destYes - Specifies the integration unit test classes directory. - This is the location where the java classes for the - integration unit test source code will be generated to. - The default value is - ${maven.build.dir}/iutest-classes. -
maven.iutest.dirYes - Specifies the integration unit test source directory. - This property should never be overridden as the value is - determined directly from the project descriptor. The - default value is - ${maven.integrationUnitTestSourceDirectory}. -
maven.out.test.dirYes - Specifies the directory where the integration unit testing - is run. The default value is ${build.dir}/iutest. -
maven.webapp.dirYes - Specifies the directory of the web application used to - perform integration unit testing. The default value is - ${iutest.dir}/testapp. -
maven.conf.test.dirYes - Specifies the configuration directory used to build the - web application used for integration unit testing. The - default value is ${iutest.dir}/cactus. -
maven.tomcat.homeYes - Specifies your local Tomcat installation directory. - The default value is ${tdk.home}. If - ${tdk.home} is not specified in your - ${user.home}/build.properties, you should set - this property. This is used for the integration unit - testing. -
maven.test.portYes - Specifies the port that Tomcat will use for integration - unit testing. The default value is 8192. -
maven.junit.jvmargsYes - If fork is enabled, additional parameters may be passed to the new VM. - You can specify some args separate by space. - Each arg is describe in sub properties. - Sample : - - -
maven.junit.syspropertiesYes - Use this property elements to specify system properties required - by the class. These properties will be made available to the VM during - the execution of the test (either Maven's VM or the forked VM, if fork is enabled). - You can specify system properties separate by space. - Each properties is describe in sub properties. - Sample : - - -
maven.test.search.classdirYes - Use this property to specify that JUnit should search the test classes directory - rather than the source directory. This allows for test cases to be written in other - languages such as Groovy which generate bytecode that can then be used by this plugin. - Sample : - - -
-
- -