[jboss-cvs] jboss-seam/examples ...
Peter Muir
peter at bleepbleep.org.uk
Thu Jan 3 12:56:37 EST 2008
User: pmuir
Date: 08/01/03 12:56:37
Modified: examples build.xml
Log:
Support for running just one test class
Revision Changes Path
1.63 +34 -20 jboss-seam/examples/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/build.xml,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -b -r1.62 -r1.63
--- build.xml 24 Dec 2007 16:27:12 -0000 1.62
+++ build.xml 3 Jan 2008 17:56:37 -0000 1.63
@@ -425,6 +425,22 @@
<fileset dir="${seam.dir}/extras/emma/*.jar" />
</path>
+ <path id="test.classpath">
+ <path path="${test.dir}" />
+ <fileset dir="${lib.dir}/test">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${lib.dir}">
+ <!-- Don't include seam-ui -->
+ <exclude name="jboss-seam-ui.jar" />
+ </fileset>
+ <path path="${eejb.conf.dir}" />
+ <path refid="test.classpath.extras" />
+ <path refid="build.classpath.extras" />
+ <path refid="emma.classpath" />
+ <path location="${seam.dir}/src/test/resources/log4j.xml" />
+ </path>
+
<!-- ##################### BUILD TARGETS (COMMON) ##################### -->
<!--
@@ -840,22 +856,6 @@
</target>
<target name="test" depends="buildtest, copyjbossembedded" description="Run the tests">
- <path id="test.classpath">
-
- <path path="${test.dir}" />
- <fileset dir="${lib.dir}/test">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${lib.dir}">
- <!-- Don't include seam-ui -->
- <exclude name="jboss-seam-ui.jar" />
- </fileset>
- <path path="${eejb.conf.dir}" />
- <path refid="test.classpath.extras" />
- <path refid="build.classpath.extras" />
- <path refid="emma.classpath" />
- <path location="${seam.dir}/src/test/resources/log4j.xml" />
- </path>
<taskdef resource="testngtasks" classpathref="build.classpath" />
<testng outputdir="${test-report.dir}">
<jvmarg value="-Xmx800M" />
@@ -869,6 +869,20 @@
<echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
</target>
+ <target name="testclass" depends="buildtest, copyjbossembedded" description="Run a specific test">
+ <taskdef resource="testngtasks" classpathref="build.classpath" />
+ <testng outputdir="${test-report.dir}" testname="${className}" suitename="${className}" >
+ <jvmarg value="-Xmx800M" />
+ <jvmarg value="-Djava.awt.headless=true" />
+ <jvmarg value="-Demma.coverage.out.file=${coverage.ec}" />
+ <jvmarg value="-Djava.endorsed.dirs=${endorsed.dir}" />
+ <jvmarg value="${testng.jvmargs}" />
+ <classpath refid="test.classpath" />
+ <classfileset dir="${test.dir}" includes="**/${className}.class"/>
+ </testng>
+ <echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
+ </target>
+
<target name="example-info">
<echo>
This is the Seam examples directory. The example projects can be run
More information about the jboss-cvs-commits
mailing list