Initial revision
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
66e44f2734
commit
530c640d4f
821 files changed
+55754
No files matched your search
@@ -0,0 +1,3 @@
|
||||
target
|
||||
velocity.log
|
||||
maven.log
|
||||
@@ -0,0 +1,282 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project xmlns:j="jelly:core"
|
||||
xmlns:u="jelly:util"
|
||||
xmlns:resources="resources"
|
||||
xmlns:define="jelly:define">
|
||||
|
||||
<goal name="test"
|
||||
description="Test the application"
|
||||
prereqs="test:test"/>
|
||||
|
||||
<goal name="test:prepare-filesystem"
|
||||
description="Create the needed directory structure">
|
||||
<mkdir dir="${maven.test.dest}"/>
|
||||
<mkdir dir="${maven.test.reportsDirectory}"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test:compile"
|
||||
description="Compile the TestCases and TestSuites"
|
||||
prereqs="java:compile,java:jar-resources,test:prepare-filesystem,test:test-resources">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
|
||||
<javac
|
||||
destdir="${maven.test.dest}"
|
||||
excludes="**/package.html"
|
||||
debug="${maven.compile.debug}"
|
||||
deprecation="${maven.compile.deprecation}"
|
||||
optimize="${maven.compile.optimize}">
|
||||
<j:if test="${context.getVariable('maven.test.source') != null}">
|
||||
<setProperty name="source" value="${maven.test.source}" />
|
||||
</j:if>
|
||||
<classpath>
|
||||
<pathelement path="${maven.build.dest}"/>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement path="${plugin.getDependencyPath('junit')}"/>
|
||||
</classpath>
|
||||
<src>
|
||||
<path refid="maven.test.compile.src.set"/>
|
||||
</src>
|
||||
</javac>
|
||||
</j:if>
|
||||
|
||||
<j:if test="${!unitTestSourcesPresent}">
|
||||
<echo>No test source files to compile.</echo>
|
||||
</j:if>
|
||||
|
||||
</goal>
|
||||
|
||||
<goal name="test:test"
|
||||
description="Test the application"
|
||||
prereqs="test:compile">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
|
||||
<taskdef
|
||||
name="junit"
|
||||
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
|
||||
/>
|
||||
|
||||
<junit printSummary="yes"
|
||||
failureProperty="maven.test.failure"
|
||||
fork="${maven.junit.fork}"
|
||||
dir="${maven.junit.dir}">
|
||||
<sysproperty key="basedir" value="${basedir}"/>
|
||||
<u:tokenize var="listOfProperties" delim=" ">${maven.junit.sysproperties}</u:tokenize>
|
||||
<j:forEach var="someProperty" items="${listOfProperties}">
|
||||
<sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
|
||||
</j:forEach>
|
||||
<formatter type="xml"/>
|
||||
<formatter type="plain" usefile="${maven.junit.usefile}"/>
|
||||
<classpath>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement location="${maven.build.dest}"/>
|
||||
<pathelement location="${maven.test.dest}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('junit')}"/>
|
||||
</classpath>
|
||||
<batchtest todir="${maven.test.reportsDirectory}">
|
||||
<fileset dir="${pom.build.unitTestSourceDirectory}">
|
||||
<j:forEach var="pat" items="${pom.build.unitTest.includes}">
|
||||
<include name="${pat}"/>
|
||||
</j:forEach>
|
||||
<j:forEach var="pat" items="${pom.build.unitTest.excludes}">
|
||||
<exclude name="${pat}"/>
|
||||
</j:forEach>
|
||||
<!-- KEEP ALL ABSTRACT TESTS FROM BEING RUN! -->
|
||||
<exclude name="**/*AbstractTestCase.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
</junit>
|
||||
|
||||
<j:if test="${maven.test.failure}">
|
||||
<j:set var="ignore__" value="${maven.test.failure.ignore}X"/>
|
||||
<j:if test="${ignore__ == 'X'}">
|
||||
<fail message="There were test failures."/>
|
||||
</j:if>
|
||||
</j:if>
|
||||
|
||||
</j:if>
|
||||
|
||||
<j:if test="${!unitTestSourcesPresent}">
|
||||
<echo>No tests to run.</echo>
|
||||
</j:if>
|
||||
|
||||
</goal>
|
||||
|
||||
<goal name="test:ui"
|
||||
description="Starts the Swing TestRunner front end"
|
||||
prereqs="test:compile">
|
||||
|
||||
<java classname="junit.swingui.TestRunner" fork="yes">
|
||||
<sysproperty key="basedir" value="${basedir}"/>
|
||||
<u:tokenize var="listOfProperties" delim=" ">${maven.junit.sysproperties}</u:tokenize>
|
||||
<j:forEach var="someProperty" items="${listOfProperties}">
|
||||
<sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
|
||||
</j:forEach>
|
||||
<classpath>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement location="${maven.build.dest}"/>
|
||||
<pathelement location="${maven.test.dest}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('junit')}"/>
|
||||
</classpath>
|
||||
<arg value="-noloading"/>
|
||||
</java>
|
||||
|
||||
</goal>
|
||||
|
||||
|
||||
<goal name="test:single"
|
||||
description="Execute a single test defined using the 'testcase' variable"
|
||||
prereqs="test:compile">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${empty(testcase)}">
|
||||
<echo>
|
||||
You must define the test case to run via -Dtestcase=classname
|
||||
Example: maven -Dtestcase=MyTest test:single-test
|
||||
</echo>
|
||||
</j:when>
|
||||
|
||||
<j:otherwise>
|
||||
|
||||
<taskdef
|
||||
name="junit"
|
||||
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
|
||||
/>
|
||||
|
||||
<junit printSummary="yes"
|
||||
haltonfailure="yes"
|
||||
haltonerror="yes"
|
||||
fork="${maven.junit.fork}"
|
||||
dir="${maven.junit.dir}">
|
||||
|
||||
<sysproperty key="basedir" value="${basedir}"/>
|
||||
<u:tokenize var="listOfProperties" delim=" ">${maven.junit.sysproperties}</u:tokenize>
|
||||
<j:forEach var="someProperty" items="${listOfProperties}">
|
||||
<sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
|
||||
</j:forEach>
|
||||
<formatter type="xml"/>
|
||||
<formatter type="plain" usefile="false"/>
|
||||
<formatter type="plain" usefile="true"/>
|
||||
|
||||
<classpath>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement location="${maven.build.dest}"/>
|
||||
<pathelement location="${maven.test.dest}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('junit')}"/>
|
||||
</classpath>
|
||||
|
||||
<test name="${testcase}" todir="${maven.test.reportsDirectory}"/>
|
||||
|
||||
</junit>
|
||||
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
</j:if>
|
||||
|
||||
<j:if test="${!unitTestSourcesPresent}">
|
||||
<echo>No tests to run.</echo>
|
||||
</j:if>
|
||||
|
||||
</goal>
|
||||
|
||||
|
||||
<goal name="test:match"
|
||||
description="Execute all the tests matching the given 'testmatch' variable"
|
||||
prereqs="test:compile">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${empty(testmatch)}">
|
||||
<echo>
|
||||
You must define the test case to run via -Dtestmatch=pattern
|
||||
Example: maven -Dtestmatch=*Foo* test:match-test
|
||||
</echo>
|
||||
</j:when>
|
||||
|
||||
<j:otherwise>
|
||||
|
||||
<taskdef
|
||||
name="junit"
|
||||
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
|
||||
/>
|
||||
|
||||
<junit printSummary="yes"
|
||||
haltonfailure="yes"
|
||||
haltonerror="yes"
|
||||
fork="${maven.junit.fork}"
|
||||
dir="${maven.junit.dir}">
|
||||
|
||||
<sysproperty key="basedir" value="${basedir}"/>
|
||||
<u:tokenize var="listOfProperties" delim=" ">${maven.junit.sysproperties}</u:tokenize>
|
||||
<j:forEach var="someProperty" items="${listOfProperties}">
|
||||
<sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
|
||||
</j:forEach>
|
||||
<formatter type="xml"/>
|
||||
<formatter type="plain" usefile="false"/>
|
||||
<formatter type="plain" usefile="true"/>
|
||||
|
||||
<classpath>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement location="${maven.build.dest}"/>
|
||||
<pathelement location="${maven.test.dest}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('junit')}"/>
|
||||
</classpath>
|
||||
|
||||
<batchtest todir="${maven.test.reportsDirectory}">
|
||||
<fileset dir="${pom.build.unitTestSourceDirectory}">
|
||||
<include name="**/${testmatch}.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
|
||||
</junit>
|
||||
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
</j:if>
|
||||
|
||||
<j:if test="${!unitTestSourcesPresent}">
|
||||
<echo>No tests to run.</echo>
|
||||
</j:if>
|
||||
|
||||
</goal>
|
||||
|
||||
<goal name="test:single-test"
|
||||
description="[deprecated] please use the test:single goal instead">
|
||||
|
||||
<echo>[deprecated] please use the test:single goal instead</echo>
|
||||
|
||||
<attainGoal name="test:single"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test:match-test"
|
||||
description="[deprecated] please use the test:match goal instead">
|
||||
|
||||
<echo>[deprecated] please use the test:match goal instead</echo>
|
||||
|
||||
<attainGoal name="test:match"/>
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- T E S T R E S O U R C E S -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="test:test-resources"
|
||||
description="Copy any resources that must be present for run tests"
|
||||
prereqs="test:prepare-filesystem"
|
||||
xmlns:resources="resources">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
<j:if test="${!pom.build.unitTest.resources.isEmpty()}">
|
||||
<resources:copy
|
||||
resources="${pom.build.unitTest.resources}"
|
||||
todir="${maven.test.dest}"
|
||||
/>
|
||||
</j:if>
|
||||
</j:if>
|
||||
</goal>
|
||||
</project>
|
||||
@@ -0,0 +1,257 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project xmlns:j="jelly:core"
|
||||
xmlns:u="jelly:util"
|
||||
xmlns:resources="resources"
|
||||
xmlns:define="jelly:define">
|
||||
|
||||
<goal name="test"
|
||||
description="Test the application"
|
||||
prereqs="test:test"/>
|
||||
|
||||
<goal name="test:prepare-filesystem"
|
||||
description="Create the needed directory structure">
|
||||
<mkdir dir="${maven.test.dest}"/>
|
||||
<mkdir dir="${maven.test.reportsDirectory}"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test:compile"
|
||||
description="Compile the TestCases and TestSuites"
|
||||
prereqs="java:compile,java:jar-resources,test:prepare-filesystem,test:test-resources">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
|
||||
<path id="junit.classpath">
|
||||
<pathelement path="${maven.build.dest}"/>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement path="${plugin.getDependencyPath('junit')}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('xerces')}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('xml-apis')}"/>
|
||||
</path>
|
||||
|
||||
<javac
|
||||
destdir="${maven.test.dest}"
|
||||
excludes="**/package.html"
|
||||
debug="${maven.compile.debug}"
|
||||
deprecation="${maven.compile.deprecation}"
|
||||
optimize="${maven.compile.optimize}">
|
||||
<classpath refid="junit.classpath"/>
|
||||
<src>
|
||||
<path refid="maven.test.compile.src.set"/>
|
||||
</src>
|
||||
</javac>
|
||||
</j:if>
|
||||
|
||||
<j:if test="${!unitTestSourcesPresent}">
|
||||
<echo>No test source files to compile.</echo>
|
||||
</j:if>
|
||||
|
||||
</goal>
|
||||
|
||||
<goal name="test:test"
|
||||
description="Test the application"
|
||||
prereqs="test:compile">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
|
||||
<fileScanner var="testCaseScanner">
|
||||
<fileset dir="${pom.build.unitTestSourceDirectory}">
|
||||
<j:forEach var="pat" items="${pom.build.unitTest.includes}">
|
||||
<include name="${pat}"/>
|
||||
</j:forEach>
|
||||
<j:forEach var="pat" items="${pom.build.unitTest.excludes}">
|
||||
<exclude name="${pat}"/>
|
||||
</j:forEach>
|
||||
<!-- KEEP ALL ABSTRACT TESTS FROM BEING RUN! -->
|
||||
<exclude name="**/*AbstractTestCase.java"/>
|
||||
</fileset>
|
||||
</fileScanner>
|
||||
|
||||
<j:forEach var="testCase" items="${testCaseScanner.iterator()}">
|
||||
${testCase}
|
||||
</j:forEach>
|
||||
|
||||
</j:if>
|
||||
|
||||
<j:if test="${!unitTestSourcesPresent}">
|
||||
<echo>No tests to run.</echo>
|
||||
</j:if>
|
||||
|
||||
</goal>
|
||||
|
||||
<goal name="test:ui"
|
||||
description="Starts the Swing TestRunner front end"
|
||||
prereqs="test:compile">
|
||||
|
||||
<java classname="junit.swingui.TestRunner" fork="yes">
|
||||
<sysproperty key="basedir" value="${basedir}"/>
|
||||
<u:tokenize var="listOfProperties" delim=" ">${maven.junit.sysproperties}</u:tokenize>
|
||||
<j:forEach var="someProperty" items="${listOfProperties}">
|
||||
<sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
|
||||
</j:forEach>
|
||||
<classpath>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement location="${maven.build.dest}"/>
|
||||
<pathelement location="${maven.test.dest}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('junit')}"/>
|
||||
</classpath>
|
||||
<arg value="-noloading"/>
|
||||
</java>
|
||||
|
||||
</goal>
|
||||
|
||||
|
||||
<goal name="test:single"
|
||||
description="Execute a single test defined using the 'testcase' variable"
|
||||
prereqs="test:compile">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${empty(testcase)}">
|
||||
<echo>
|
||||
You must define the test case to run via -Dtestcase=classname
|
||||
Example: maven -Dtestcase=MyTest test:single-test
|
||||
</echo>
|
||||
</j:when>
|
||||
|
||||
<j:otherwise>
|
||||
|
||||
<taskdef
|
||||
name="junit"
|
||||
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
|
||||
/>
|
||||
|
||||
<junit printSummary="yes"
|
||||
haltonfailure="yes"
|
||||
haltonerror="yes"
|
||||
fork="${maven.junit.fork}"
|
||||
dir="${maven.junit.dir}">
|
||||
|
||||
<sysproperty key="basedir" value="${basedir}"/>
|
||||
<u:tokenize var="listOfProperties" delim=" ">${maven.junit.sysproperties}</u:tokenize>
|
||||
<j:forEach var="someProperty" items="${listOfProperties}">
|
||||
<sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
|
||||
</j:forEach>
|
||||
<formatter type="xml"/>
|
||||
<formatter type="plain" usefile="false"/>
|
||||
<formatter type="plain" usefile="true"/>
|
||||
|
||||
<classpath>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement location="${maven.build.dest}"/>
|
||||
<pathelement location="${maven.test.dest}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('junit')}"/>
|
||||
</classpath>
|
||||
|
||||
<test name="${testcase}" todir="${maven.test.reportsDirectory}"/>
|
||||
|
||||
</junit>
|
||||
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
</j:if>
|
||||
|
||||
<j:if test="${!unitTestSourcesPresent}">
|
||||
<echo>No tests to run.</echo>
|
||||
</j:if>
|
||||
|
||||
</goal>
|
||||
|
||||
|
||||
<goal name="test:match"
|
||||
description="Execute all the tests matching the given 'testmatch' variable"
|
||||
prereqs="test:compile">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${empty(testmatch)}">
|
||||
<echo>
|
||||
You must define the test case to run via -Dtestmatch=pattern
|
||||
Example: maven -Dtestmatch=*Foo* test:match-test
|
||||
</echo>
|
||||
</j:when>
|
||||
|
||||
<j:otherwise>
|
||||
|
||||
<taskdef
|
||||
name="junit"
|
||||
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
|
||||
/>
|
||||
|
||||
<junit printSummary="yes"
|
||||
haltonfailure="yes"
|
||||
haltonerror="yes"
|
||||
fork="${maven.junit.fork}"
|
||||
dir="${maven.junit.dir}">
|
||||
|
||||
<sysproperty key="basedir" value="${basedir}"/>
|
||||
<u:tokenize var="listOfProperties" delim=" ">${maven.junit.sysproperties}</u:tokenize>
|
||||
<j:forEach var="someProperty" items="${listOfProperties}">
|
||||
<sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
|
||||
</j:forEach>
|
||||
<formatter type="xml"/>
|
||||
<formatter type="plain" usefile="false"/>
|
||||
<formatter type="plain" usefile="true"/>
|
||||
|
||||
<classpath>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement location="${maven.build.dest}"/>
|
||||
<pathelement location="${maven.test.dest}"/>
|
||||
<pathelement path="${plugin.getDependencyPath('junit')}"/>
|
||||
</classpath>
|
||||
|
||||
<batchtest todir="${maven.test.reportsDirectory}">
|
||||
<fileset dir="${pom.build.unitTestSourceDirectory}">
|
||||
<include name="**/${testmatch}.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
|
||||
</junit>
|
||||
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
</j:if>
|
||||
|
||||
<j:if test="${!unitTestSourcesPresent}">
|
||||
<echo>No tests to run.</echo>
|
||||
</j:if>
|
||||
|
||||
</goal>
|
||||
|
||||
<goal name="test:single-test"
|
||||
description="[deprecated] please use the test:single goal instead">
|
||||
|
||||
<echo>[deprecated] please use the test:single goal instead</echo>
|
||||
|
||||
<attainGoal name="test:single"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test:match-test"
|
||||
description="[deprecated] please use the test:match goal instead">
|
||||
|
||||
<echo>[deprecated] please use the test:match goal instead</echo>
|
||||
|
||||
<attainGoal name="test:match"/>
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- T E S T R E S O U R C E S -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="test:test-resources"
|
||||
description="Copy any resources that must be present for run tests"
|
||||
prereqs="test:prepare-filesystem"
|
||||
xmlns:resources="resources">
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
<j:if test="${!pom.build.unitTest.resources.isEmpty()}">
|
||||
<resources:copy
|
||||
resources="${pom.build.unitTest.resources}"
|
||||
todir="${maven.test.dest}"
|
||||
/>
|
||||
</j:if>
|
||||
</j:if>
|
||||
</goal>
|
||||
</project>
|
||||
@@ -0,0 +1,11 @@
|
||||
# -------------------------------------------------------------------
|
||||
# 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.test.dest = ${maven.build.dir}/test-classes
|
||||
maven.test.reportsDirectory = ${maven.build.dir}/test-reports
|
||||
@@ -0,0 +1,5 @@
|
||||
# -------------------------------------------------------------------
|
||||
# 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}
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
|
||||
<extend>${basedir}/../project.xml</extend>
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>maven-test-plugin</id>
|
||||
<name>Maven Test Plug-in</name>
|
||||
<currentVersion>1.2-SNAPSHOT</currentVersion>
|
||||
|
||||
<description>
|
||||
</description>
|
||||
|
||||
<shortDescription>Java Project Management Tools</shortDescription>
|
||||
|
||||
<url>http://jakarta.apache.org/turbine/maven/reference/plugins/test/</url>
|
||||
<issueTrackingUrl>http://jira.werken.com/BrowseProject.jspa?id=10030</issueTrackingUrl>
|
||||
<siteAddress>jakarta.apache.org</siteAddress>
|
||||
<siteDirectory>/www/jakarta.apache.org/turbine/maven/reference/plugins/test/</siteDirectory>
|
||||
<distributionDirectory>/www/jakarta.apache.org/builds/jakarta-turbine-maven/</distributionDirectory>
|
||||
|
||||
|
||||
<developers>
|
||||
</developers>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<id>junit</id>
|
||||
<version>3.8.1</version>
|
||||
<properties>
|
||||
<classloader>root</classloader>
|
||||
</properties>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<id>xml-apis</id>
|
||||
<version>1.0.b2</version>
|
||||
<url>http://xml.apache.org/xerces2-j/</url>
|
||||
<properties>
|
||||
<classloader>root</classloader>
|
||||
</properties>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<id>xerces</id>
|
||||
<version>2.0.2</version>
|
||||
<url>http://xml.apache.org/xerces2-j/</url>
|
||||
<properties>
|
||||
<classloader>root</classloader>
|
||||
</properties>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>maven-test-plugin</id>
|
||||
<name>Maven Test Plug-in</name>
|
||||
<currentVersion>1.2-SNAPSHOT</currentVersion>
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>http://jakarta.apache.org/</url>
|
||||
<logo>http://jakarta.apache.org/turbine/maven/images/jakarta-logo-blue.gif</logo>
|
||||
</organization>
|
||||
<inceptionYear>2001</inceptionYear>
|
||||
<package>org.apache.maven</package>
|
||||
<logo>http://jakarta.apache.org/turbine/maven/images/maven.jpg</logo>
|
||||
|
||||
<description>
|
||||
</description>
|
||||
|
||||
<shortDescription>Java Project Management Tools</shortDescription>
|
||||
|
||||
<url>http://jakarta.apache.org/turbine/maven/reference/plugins/test/</url>
|
||||
<issueTrackingUrl>http://nagoya.apache.org/scarab/servlet/scarab/</issueTrackingUrl>
|
||||
<siteAddress>jakarta.apache.org</siteAddress>
|
||||
<siteDirectory>/www/jakarta.apache.org/turbine/maven/reference/plugins/test/</siteDirectory>
|
||||
<distributionDirectory>/www/jakarta.apache.org/builds/jakarta-turbine-maven/</distributionDirectory>
|
||||
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-maven/src/plugins-build/test/</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/jakarta-turbine-maven/src/plugins-build/test/</url>
|
||||
</repository>
|
||||
|
||||
<developers>
|
||||
</developers>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<id>junit</id>
|
||||
<version>3.8.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<id>xml-apis</id>
|
||||
<version>1.0.b2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<id>xerces</id>
|
||||
<version>2.0.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<nagEmailAddress>turbine-maven-dev@jakarta.apache.org</nagEmailAddress>
|
||||
<sourceDirectory>src/java</sourceDirectory>
|
||||
</build>
|
||||
</project>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
stylesheets
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
<properties>
|
||||
<title>Changes</title>
|
||||
<author email="dion@multitask.com.au">dIon Gillard</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<release version="1.2" date="in CVS">
|
||||
<action dev="evenisse" type="fix">
|
||||
Fixed classpath for test:ui, test:single and test:match goals.
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Added xmlapis and xerces to project dependencies as per MAVEN-106
|
||||
bug report
|
||||
</action>
|
||||
</release>
|
||||
<release version="1.1" date="2002-10-01">
|
||||
<action dev="vmassol" type="fix">
|
||||
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.
|
||||
</action>
|
||||
</release>
|
||||
</body>
|
||||
</document>
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<document>
|
||||
<properties>
|
||||
<title>Maven test Plug-in Goals</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
<body>
|
||||
<goals>
|
||||
<goal>
|
||||
<name>test</name>
|
||||
<description>Test the application</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>test:compile</name>
|
||||
<description>Compile the TestCases and TestSuites</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>test:match</name>
|
||||
<description>Execute all the tests matching the given 'testmatch' variable</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>test:match-test</name>
|
||||
<description>[deprecated] please use the test:match goal instead</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>test:prepare-filesystem</name>
|
||||
<description>Create the needed directory structure</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>test:single</name>
|
||||
<description>Execute a single test defined using the 'testcase' variable</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>test:single-test</name>
|
||||
<description>[deprecated] please use the test:single goal instead</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>test:test</name>
|
||||
<description>Test the application</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>test:test-resources</name>
|
||||
<description>Copy any resources that must be present for run tests</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>test:ui</name>
|
||||
<description>Starts the Swing TestRunner front end</description>
|
||||
</goal>
|
||||
</goals>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Maven Test Plugin</title>
|
||||
<author email="jason@zenplex.com">Jason van Zyl</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Maven Test Plugin">
|
||||
<p>
|
||||
This plug-in provides your basic JUnit testing facilities.
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project name="Maven Test Plugin">
|
||||
|
||||
<title>Maven Test Plugin</title>
|
||||
|
||||
<body>
|
||||
<links>
|
||||
<item name="Maven" href="http://jakarta.apache.org/turbine/maven/"/>
|
||||
<item name="JUnit" href="http://junit.sourceforge.net/"/>
|
||||
</links>
|
||||
<menu name="Overview">
|
||||
<item name="Goals" href="/goals.html"/>
|
||||
<item name="Properties" href="/properties.html"/>
|
||||
</menu>
|
||||
</body>
|
||||
</project>
|
||||
@@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Test Properties</title>
|
||||
<author email="smor@apache.org">Stéphane MOR</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Test Settings">
|
||||
<table>
|
||||
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
|
||||
<tr>
|
||||
<td>maven.junit.fork</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
When using Java 1.4, it may be necessary to fork the JUnit
|
||||
tests to prevent XML parser issues. The default value is
|
||||
<code>no</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.junit.dir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
The directory to invoke the VM in. (ignored if fork is disabled).
|
||||
The default value is <code>${basedir}</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.junit.usefile</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
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 <code>test-reports</code> directory. The default value
|
||||
is <code>true</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.dest</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
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
|
||||
<code>${maven.build.dir}/test-classes</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.source</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>
|
||||
Provide source compatibility with a specific release
|
||||
</p>
|
||||
<p>
|
||||
Corresponds to the <code>source</code> attribute for the ant
|
||||
<a href="http://jakarta.apache.org/ant/manual/CoreTasks/javac.html">javac</a>
|
||||
task.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.iutest.dest</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
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
|
||||
<code>${maven.build.dir}/iutest-classes</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.iutest.dir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
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
|
||||
<code>${maven.integrationUnitTestSourceDirectory}</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.out.test.dir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies the directory where the integration unit testing
|
||||
is run. The default value is <code>${build.dir}/iutest</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.webapp.dir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies the directory of the web application used to
|
||||
perform integration unit testing. The default value is
|
||||
<code>${iutest.dir}/testapp</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.conf.test.dir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies the configuration directory used to build the
|
||||
web application used for integration unit testing. The
|
||||
default value is <code>${iutest.dir}/cactus</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.tomcat.home</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies your local Tomcat installation directory.
|
||||
The default value is <code>${tdk.home}</code>. If
|
||||
<code>${tdk.home}</code> is not specified in your
|
||||
<code>${user.home}/build.properties</code>, you should set
|
||||
this property. This is used for the integration unit
|
||||
testing.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.port</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies the port that Tomcat will use for integration
|
||||
unit testing. The default value is <code>8192</code>.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
Reference in new issue
Block a user