From: David S. <ds...@us...> - 2007-02-27 16:20:59
|
Update of /cvsroot/junit/junit/experimental-use-of-antunit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv23383/experimental-use-of-antunit Modified Files: build.xml Added Files: junit-slow.ant Removed Files: junit-old.ant Log Message: Refactored AntUnit tests into fast and slow tests --- NEW FILE: junit-slow.ant --- <project xmlns:au="antlib:org.apache.ant.antunit"> <property name="junitdir" value=".." /> <property name="antdist" value="temp-dist-directory-for-ant-unit"></property> <property name="antdistdir" value="${junitdir}/${antdist}"/> <!-- is called prior to the test --> <target name="setUp"> </target> <!-- is called after the test, even if that caused an error --> <target name="tearDown"> <delete dir="${antdistdir}" /> </target> <target name="testTearDown"> <mkdir dir="${antdistdir}"/> <antcall target="tearDown" /> <au:assertFileDoesntExist file="${antdistdir}" /> </target> <target name="testCharacterize_DistGeneratesJavadoc"> <ant antfile="build.xml" target="dist" dir="${junitdir}"> <property name="dist" value="${antdist}" /> <property name="javadocdir" value="${antdist}/ant-unit-java-docs" /> </ant> <au:assertFileExists file="${antdistdir}/ant-unit-java-docs" /> </target> <target name="testCharacterize_DistRunsTests"> <ant antfile="build.xml" target="dist" dir="${junitdir}"> <property name="dist" value="${antdist}" /> </ant> <au:assertLogContains text="Time:" /> </target> </project> Index: build.xml =================================================================== RCS file: /cvsroot/junit/junit/experimental-use-of-antunit/build.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- build.xml 21 Feb 2007 18:25:21 -0000 1.1 +++ build.xml 27 Feb 2007 16:19:30 -0000 1.2 @@ -1,10 +1,18 @@ -<project xmlns:au="antlib:org.apache.ant.antunit"> +<project xmlns:au="antlib:org.apache.ant.antunit" default="fast"> <taskdef uri="antlib:org.apache.ant.antunit" resource="org/apache/ant/antunit/antlib.xml" classpath="lib/ant-antunit-1.0.jar" /> - <au:antunit> - <fileset dir="." includes="touch.ant,junit.ant" /> - <au:plainlistener /> - </au:antunit> + <target name="fast"> + <au:antunit> + <fileset dir="." includes="touch.ant,junit.ant" /> + <au:plainlistener /> + </au:antunit> + </target> + <target name="all"> + <au:antunit> + <fileset dir="." includes="touch.ant,junit.ant,junit-slow.ant" /> + <au:plainlistener /> + </au:antunit> + </target> </project> \ No newline at end of file --- junit-old.ant DELETED --- |