1. Install sbt
  2. Add specs2 dependencies to your build file
    // Read here for optional jars and dependencies
    libraryDependencies ++= Seq("org.specs2" %% "specs2-core" % "3.9.5" % "test")
    
    scalacOptions in Test ++= Seq("-Yrangepos")
  3. Write your first specification
    import org.specs2._
    
    class QuickStartSpec extends Specification { def is = s2"""
    
     This is my first specification
       it is working                 $ok
       really working!               $ok
                                     """
    }
  4. Execute
    sbt> testOnly QuickStartSpec
    [info] QuickStartSpec
    [info]
    [info]  This is my first specification
    [info]    + it is working
    [info]    + really working!
    [info]
    [info] Total for specification QuickStartSpec
    [info] Finished in 23 ms
    [info] 2 examples, 0 failure, 0 error
    
  5. Follow the rest of the User Guide to learn much more!