O'Reilly logo

Scala Test-Driven Development by Gaurav Sood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up Specs2

The following dependencies and resolvers need to be added to build.sbt to set up Specs2 so that it can run from SBT:

 
version := "1.0.0" 
name := "Specs2 Setup" 
 
libraryDependencies += "org.specs2" %% "specs2-core" % "3.8.4" % "test" 
 
scalacOptions in Test ++= Seq("-Yrangepos") 

We can provide a sequence of Maven repositories for SBT to use for resolving dependencies using resolvers.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required