Loading...
 

Ant

  • Run all tests even if the build fails:

<target name="unit-test" depends="compile-test" description="run unit tests">
       <!-- want to run the whole build and report all test failures, not fail fast on first test -->
        <junit printsummary="yes" haltonfailure="no" failureproperty="unit-test-fail" fork="yes" forkmode="perBatch">
	<classpath refid="test.path" />
	 <classpath refid="test.resource.path" />
		<formatter type="xml" />
		<batchtest todir="${junit-output}">
			<fileset dir="${test}">
				<include name="**/*Test.java" />
			</fileset>
		</batchtest>
	</junit>		
        <fail message="One or more unit tests failed">
           <condition>
               <isset property="unit-test-fail"/>
           </condition>
        </fail>
</target>

Created by IanJones. Last Modification: Thursday 08 of January, 2009 14:54:40 UTC by IanJones.

Search For a Wiki Page

Google Search

 
www.iandjones.com
WWW