My company is beginning to write some code using Scala. I’ve been moved onto this project, and am a big fan of TDD, so I would like to get a unit-testing framework in place. However, the build system we’re using for this project is Maven, and that’s not going to change, for a variety of reasons.
I’ve looked at both ScalaTest and ScalaCheck, and both seem to have issues with Maven integration. Various forum posts I’ve seen in Google searches indicate that some of the Suites included with ScalaTest won’t run under the maven-scala-plugin, and I haven’t been able to find any information at all on running ScalaCheck in Maven’s test goal.
Can anyone either point me at a way to get ScalaTest/ScalaCheck running reliably with Maven, or suggest an alternative?
You can also use specs to declare specifications and execute them as JUnit tests with Maven. This works fine, as described here: http://code.google.com/p/specs/wiki/RunningSpecs#Run_your_specification_with_JUnit4
If you have any issue with that, please post a mail on the users mailing list.
Thanks,
Eric.
PS: you can also use ScalaTest and ScalaCheck from specs if you want to access some of these libraries features.