JUnit 관련 Ant Test Target 예제

	<target name="test" depends="compile">
		<junit printsummary="true" haltonfailure="yes">
			<classpath refid="xtest.classpath" />
			<formatter type="xml" />
			<batchtest todir="${test.dir}">
				<fileset dir="${classes.dir}">
					<include name="**/*Test*.class" />
				</fileset>
			</batchtest>
		</junit>

		<junitreport todir="${test.dir}">
			<fileset dir="${test.dir}">
				<include name="TEST-**.xml" />
			</fileset>
			<report format="frames" todir="${test.dir}/html" />
		</junitreport>
	</target>
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2010-05-11 16:19:24
Processing time 0.0056 sec