ant-eclipse
Target test

test

  |
  +--compile
    |
    +--prepare
      |
      +--check

Tests the compiled classes.

Instrumented unit tests are run by this tasks and reports with the test results and test coverage are generated, everything in XML and HTML.

Detail:
<target
	depends="compile"
	description="Tests the compiled classes."
	name="test"
>
	<echo message="${classpath}"/>

	<antcall target="instrument"/>

	<junit
		dir="${tst.dir}"
		failureproperty="test.failed"
		fork="true"
		haltonfailure="false"
		jvm="${java.jvm}"
		printsummary="true"
		timeout="60000"
	>
		<sysproperty
			file="${basedir}/cobertura.ser"
			key="net.sourceforge.cobertura.datafile"
		/>

		<classpath>
			<pathelement location="${tmp.dir}"/>

			<pathelement path="${classpath}"/>
		</classpath>

		<formatter type="xml"/>

		<batchtest todir="${tmp.dir}">
			<fileset
				dir="${tst.dir}"
				includes="**/*Test.java"
			/>
		</batchtest>
	</junit>

	<antcall target="report"/>

	<fail
		if="test.failed"
		message="Tests failed, report has beed generated."
	/>
</target>


Edouard Mercier 2003.10.01 21:48:07 - AntDoc V0.8g - XSL Transformer Factory: org.apache.xalan.processor.TransformerFactoryImpl