ant 运行JUnit
示例
下面将在匹配的测试上运行JUnittest/**/*Test.java。这需要junit.jar放在lib文件夹中。
<project name="Project" default="junit" basedir=".">
<path id="classpath">
<fileset dir="lib" includes="**/*.jar"/>
<pathelement path="build"/>
</path>
<target name="compile">
<javac srcdir="test" destdir="build" classpathref="classpath"/>
</target>
<target name="junit" depends="compile">
<junit fork="true" logfailedtests="false">
<classpath refid="classpath"/>
<batchtest>
<fileset dir="test" includes="**/*Test.java"/>
<formatter type="plain" usefile="false"/>
</batchtest>
</junit>
</target>
</project>
热门推荐
10 读书祝福语女生短句简短
11 感谢同事新婚祝福语简短
12 感谢教官文案祝福语简短
13 员工聚会蛋糕祝福语简短
14 元宵发客户祝福语简短
15 给团队信心祝福语简短
16 医美的祝福语大全简短
17 异国姻缘的祝福语简短
18 兄妹拍照祝福语简短的话