Scala, choosing a test lib

2010/09/29 | Published in lang/scala, tools/eclipse, tools/maven

I note here, (partial) results for my testing tool research/evaluation.

Features :

I create a sample project to try test/bdd lib : prj-scala-only

To run test under eclipse, I follow the rules :

To run test under maven : mvn test :

JUnit 3/4 :

TestNG :

Specs :

ScalaTest :

I stop here, my evaluation. But If you’re interested to continue, there is other solution like Specsy, ScalaTestCase, assert from Scalaz,…

Conclusion :

I started this comparison because I was not able to use Specs under Eclipse, and to eval alternative. But at the end of the eval I found how to run Specs under eclipse. And I don’t like a lot the too many syntax of ScalaTest (Error when before failed). So currently, I’ll continue to use Specs.

I hope my feedback could help you.