concept specs2 in category sbt

appears as: specs2
sbt in Action

This is an excerpt from Manning's book sbt in Action.

You can see that sbt automatically compiles the test and runs it. The output from specs2 is quite detailed, outlining every test and specification that passes. One of the benefits of using a testing framework like specs2 is the robust output for errors. Note: testing is covered in more depth in chapter 5.

specs2 can generate an HTML report of the tests you’ve run, so you’ll use that as a basis of your reports. First you need to generate the HTML; this is done by specifying the html option to specs2 in build.sbt:

testOptions in Test += Tests.Argument("html")

specs2 uses pegdown, an HTML generator library, to generate the HTML, so for this to work you need to add another dependency, "org.pegdown" % "pegdown" % "1.0.2". Note that you’re adding a test configuration: