Run Scalding Tests Using Ant

For a reason I don't completely understand, we don't use sbt. So I had to figure out a way to get the tests to run in ant. The trick is apparently to run the specs tests as JUnit tests. Running JUnit tests is pretty well established in ant land. To make that happen your test class should extend SpecificationWithJUnit instead of Specification as explained in the excellent specs documentation. The actual ant task is also described in that document.

Edit: You'll need to include the specs dependency:
 dependency org="org.scala-tools.testing" name="specs_2.9.1" rev="1.6.9"

Comments