New release! Special thanks to Eugene Yokota for helping sorting out the publishing of the new multi-module project.
New features
-
Macro matchers to automatically create matchers for your classes. This uses the "macro-paradise" compiler plugin (add this line to your sbt file:
addCompilerPlugin("org.scala-lang.plugins" % "macro-paradise_2.10.3-RC1" % "2.0.0-SNAPSHOT"))
) -
specs2 can be downloaded from Sonatype as a big jar containing all the specs2 classes but also as smaller jars, depending on the features you need:
specs2-core
: for simple specifications executable in the console or with sbtspecs2-matcher
: to use specs2 matchers with JUnitspecs2-matcher-extra
: for the optional specs2 matchersspecs2-scalacheck
: to use ScalaCheck properties in specificationsspecs2-mock
: to use Mockito matchersspecs2-analysis
: to use package dependencies matcherspecs2-gwt
: to write given-when-then specificationsspecs2-form
: Fit-like formsspecs2-html
: to export specifications as htmlspecs2-junit
: to run specifications as JUnit tests
-
zip
operator for matchers in order to match nested tuples - using
ValueChecks
in theTryMatchers
andEitherMatchers
. Now we can write:Right(1) must beRight(be_==(1))
. fixes #201
Removals
- the 'old' acceptance style for specifications (using the
^
operator to relate specification fragments) is not supported anymore, you should use string interpolation instead. This removal should not break the compilation but will not display nice results for 'old' specifications
Fixes
- fixed location of fragments when they are contained in a package where the package name includes 'scala' but does not start with it
- fixed the evaluation of Mockito matchers when having mixed byname and byvalue parameters (this requires an upgrade to
mockito-core-1.9.5.jar
)
==========================