Set up build.xml test harness to run the JUnit4 tests as well

You will need junit4.jar, hamcrest-core.jar and hamcrest-library.jar in your
Ant library path (probably /usr/share/ant/lib)
This commit is contained in:
str4d
2013-01-02 21:06:59 +00:00
parent 6f301f01dc
commit d6d1b51970
3 changed files with 15 additions and 8 deletions

View File

@ -233,7 +233,7 @@
<!-- replace hostname that junit inserts into reports with fake one -->
<replace dir="../../reports/router/junit/" token="${host.name}" value="${host.fakename}"/>
</target>
<target name="test" depends="scalatest.test"/>
<target name="test" depends="junit.test"/>
<!-- test reports -->
<target name="scalatest.report">
<junitreport todir="../../reports/router/scalatest">
@ -265,7 +265,7 @@
<cobertura-report format="html" srcdir="./src" destdir="../../reports/router/html/cobertura" />
<delete file="./cobertura.ser" />
</target>
<target name="test.report" depends="scalatest.report, clover.report, cobertura.report"/>
<target name="test.report" depends="junit.report, clover.report, cobertura.report"/>
<!-- end test reports -->
<target name="fulltest" depends="cleandep, test, test.report" />
<!-- end unit tests -->