Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scalacheck, scalatest, specs - which one has the lower barrier to entry?

Tags:

testing

scala

Between the following test frameworks which one is the easiest to use and learn?

  • scalacheck
  • ScalaTest
  • specs

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
like image 345
huynhjl Avatar asked Oct 03 '10 03:10

huynhjl


1 Answers

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.

like image 136
David Avatar answered Nov 13 '22 18:11

David