Between the following test frameworks which one is the easiest to use and learn?
I’m using 2.8.0 and sbt for building, so working nicely with it is a factor. I’m not necessarily looking at the most full featured. As best I can tell my criteria are in order:
- allow unit testing for Scala code
- painless set-up
- working with sbt
- tutorials
- rich documentation
I learned Scala by writing a suite of tests for my Java-based application. I used ScalaTest, and found it easy. I understand that ScalaTest offers a greater range of testing styles, including the Behavior-Driven Development (BDD) style employed by Specs. The greater scope of ScalaTest appealed to me because different styles lend themselves to different types of testing; for example, BDD is commonly used for unit testing, whereas the FeatureSpec style would be more appropriate for integration or acceptance testing.
Another consideration is support. Although I cannot speak for the Specs community, I can report that support from the author of ScalaTest has been quick, encouraging, and very useful.