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

@ -230,7 +230,7 @@
<!-- replace hostname that junit inserts into reports with fake one -->
<replace dir="../../reports/core/junit/" token="${host.name}" value="${host.fakename}"/>
</target>
<target name="test" depends="scalatest.test"/>
<target name="test" depends="junit.test, scalatest.test"/>
<!-- test reports -->
<target name="scalatest.report">
<junitreport todir="../../reports/core/scalatest">
@ -262,7 +262,7 @@
<cobertura-report format="html" srcdir="./src" destdir="../../reports/core/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, scalatest.report, clover.report, cobertura.report"/>
<!-- end test reports -->
<target name="fulltest" depends="test, test.report" />
<!-- end unit tests -->