我正在使用纯 JUnit 4 测试,并将它们编译在一些属于类路径的 jar 中。我想在我的类路径中运行所有测试。
有办法吗?
我的任务如下:
<target name="test" description="All the tests">
<junit fork="yes">
<classpath>
<path refid="test.classpath" />
<fileset dir="war/WEB-INF/lib/">
<include name="*.jar"/>
</fileset>
<fileset dir="war/WEB-INF"/>
<fileset dir="war"/>
</classpath>
<formatter type="plain" usefile="false" />
</junit>
</target>