Author: jharting
Date: 2009-12-21 08:35:18 -0500 (Mon, 21 Dec 2009)
New Revision: 11868
Modified:
branches/enterprise/JBPAPP_4_2_CP01/build.xml
Log:
JBPAPP-3294
Modified: branches/enterprise/JBPAPP_4_2_CP01/build.xml
===================================================================
--- branches/enterprise/JBPAPP_4_2_CP01/build.xml 2009-12-21 12:18:55 UTC (rev 11867)
+++ branches/enterprise/JBPAPP_4_2_CP01/build.xml 2009-12-21 13:35:18 UTC (rev 11868)
@@ -1515,5 +1515,88 @@
<delete file="${tomcat.home}/webapps/${example.name}.war"/>
<delete dir="${tomcat.home}/webapps/${example.name}"/>
</target>
-
+
+ <target name="eap.testall" depends="eap.testcore"
description="Run EAP unit and integration testsuite">
+ <!-- Run integration tests -->
+ <ant dir="examples/booking" target="eap.testexample"
inheritall="false" />
+ <ant dir="examples/dvdstore" target="eap.testexample"
inheritall="false" />
+ <ant dir="examples/hibernate" target="eap.testexample"
inheritall="false" />
+ <ant dir="examples/messages" target="eap.testexample"
inheritall="false" />
+ <ant dir="examples/numberguess" target="eap.testexample"
inheritall="false" />
+ <ant dir="examples/registration" target="eap.testexample"
inheritall="false" />
+ <ant dir="examples/todo" target="eap.testexample"
inheritall="false" />
+ <ant dir="examples/blog" target="eap.testexample"
inheritall="false" />
+
+ <!-- Create a report -->
+ <mkdir dir="report" />
+ <junitreport todir="./report">
+ <fileset dir=".">
+ <include name="**/test-output/*.xml" />
+ <exclude name="**/testng-failures.xml" />
+ </fileset>
+ <report format="frames" todir="./report" />
+ </junitreport>
+
+ <echo>Report available at ${basedir}/report/index.html</echo>
+ </target>
+
+ <target name="eap.testcore">
+
+ <path id="eap.test.classpath">
+ <path refid="test.classpath" />
+ <fileset dir="${imported.basedir}">
+ <include name="jboss-seam.jar" />
+ </fileset>
+ </path>
+
+ <mkdir dir="${build.dir}/test" />
+
+ <!-- Compile core tests -->
+ <javac source="1.5" target="1.5"
destdir="${build.dir}/test" classpathref="build.classpath"
debug="${javac.debug}" deprecation="${javac.deprecation}"
nowarn="on">
+ <src path="${src.test.dir}" />
+ <classpath>
+ <fileset dir="${imported.basedir}">
+ <include name="jboss-seam-remoting.jar" />
+ </fileset>
+ </classpath>
+ </javac>
+
+ <copy todir="${build.dir}/test">
+ <fileset dir="${src.java.dir}">
+ <include name="META-INF/*.xml" />
+ </fileset>
+ </copy>
+
+ <taskdef resource="testngtasks" classpath="${testng.jar}" />
+
+ <!-- Run core tests -->
+ <testng>
+ <classpath refid="eap.test.classpath" />
+ <xmlfileset dir="${src.test.dir}" includes="**/*.xml" />
+ </testng>
+ </target>
+
+ <target name="eap.testexample" depends="compile">
+
+ <taskdef resource="testngtasks" classpath="${testng.jar}" />
+
+ <copy todir="${build.dir}/test">
+ <fileset dir="${classes.dir}" includes="**/*.*" />
+ <fileset refid="example.resources" />
+ </copy>
+
+ <delete dir="test-output" />
+
+ <testng outputdir="test-output">
+ <classpath path="${example.coverage.dir}/classes" />
+ <!-- TODO: ugly! -->
+ <classpath path="${build.dir}/test" />
+ <classpath path="${mc.conf.dir}" />
+ <classpath refid="${test.classpath}" />
+ <classpath refid="eap.test.classpath" />
+ <xmlfileset dir="${src.test.dir}" includes="**/*.xml" />
+ </testng>
+
+ </target>
+
</project>
Show replies by date