implicit.ly

Scala software, hot off the presses

specs2 1.7

This version adds new features on top of 1.6.1:

  • Mockito settings (name, defaultAnswer, extraInterfaces) can be specified during mock creation
  • issue #39: results are now printed to the console as soon as executed
  • added an implicit function to allow the use of generators in ScalaCheck properties: forAll(generator) { p => p must matchSomething }
  • added forall/foreach/atLeastOnce to check a function returning a Result several times: ((i: Int) => i must be_<=(2)).forall(Seq(1, 2, 3, 4)) or forall(Seq((1, 2), (3, 4))) { case (a, b) => a must be_<(b) } }
  • added TerminationMatchers to check if that a block of code terminates within a reasonable amount of time
  • added containAllOf/containAnyOf collection matchers taking sequences as parameters (instead of varargs)
  • added new matchers to allow Parser matchers to partially consume their input: beAPartialSuccess (issue #46)

And fixes some issues:

  • delayed a MatchResult evaluation when transforming it to a Prop avoid issues with properties implication
  • display of Arrays in failures like Array(1, 2) === Array(1, 3)
  • issue #40: incorrect line number for a failure in a mutable specification
  • issue #41: missing specification title when using sbt
  • issue #45: fixed the evaluation of result1 and result2 so that result2 doesn't get evaluated if result1 succeeds
  • issue #46: fixed the parser matchers which should consume all input
  • issue #47: proper display of DataTables in the console
  • fixed the find.withGroups matcher (was not matching several groups)

==========================

specs2 is a library for writing software specifications in Scala.

For more information visit: http://specs2.org.

specs2 1.6.1

Fixed issue 37: broken Pending icon in html reports

==========================

specs2 is a library for writing software specifications in Scala.

For more information visit: http://specs2.org.

specs2 1.6

This version adds new features on top of 1.5. The first set of features rely on the storage of execution results for each run (in the specs2-report/stats directory by default):

  • executing an index page with see links referencing other specifications now displays their status correctly
  • it is possible to execute only previously failed/error examples with the wasIssue argument
  • it is possible to display only pending, or skipped examples with a status flag. For example show("!o") will only show errors and skipped examples
  • reports now show the differences with the previous execution: 3 examples, 1 failure (-1), 1 error (+1)
  • storing results can be completely deactivated with the neverStore argument
  • the arguments api has evolved a bit because the number of arguments exceeds the maximum number of function parameters (see the Runners guide for the complete description of the Arguments api and new arguments)

The other features are:

  • html reports with issues have a link to display only the failed examples
  • DataTables are now contravariant
  • an exception is thrown if a null matcher is passed to an expectable
  • new ThrownMessages trait for generic integration with other libraries
  • new haveInterface matcher
  • new mutable BeforeAfter trait (was missing,...)

And some fixes:

  • fixed the issue with -Dcolor=false not being recognized
  • reworked the Given/When/Then specifications indentation so that formatting fragments can now be used to adjust the display
  • fixed a typechecking issue with Mockito specifications
  • fixed auto-examples when no 'end' fragment is used at the end of the specification
  • fixed issue 30: IndexOutOfBoundsException with auto-examples

==========================

specs2 is a library for writing software specifications in Scala.

For more information visit: http://specs2.org.

scalatra 2.0.0.RC1

scalatra

  • Fix dynamic variables leaking memory on redeploy. (GH-74)
  • Send 405 and Allow header if other methods match. (GH-50)
  • Support bodies and headers in halt. (GH-79)
  • Support PATCH requests. (GH-51)
  • Error handler is now a pattern matcher. (GH-93)
  • Generate URLs from route and params (aka reverse routing). (GH-108)
  • Make trailing slash optional on non-root path-mapped servlets. (GH-98)
  • Servlets try to serve static resource if no route matches. (GH-109)
  • request.body is cached so subsequent calls don't return "". (GH-73)

scalatra-anti-xml

  • New module adds support for rendering Elem responses. (GH-75)

scalatra-fileupload

  • Keep query parameters available on multipart requests. (GH-80)
  • Improve character decoding of form fields in multipart requests. (GH-83)

scalatra-scalate

  • Find templates and layouts by convention. (GH-87)

scalatra-socketio

  • Change interface to socket io to something that allows to keep state per client. (GH-72)
  • Deprecated in favor of Atmosphere.

scalatra-scalatest

  • Support for testing arbitrary requests. Explicit support for HEAD, TRACE, CONNECT, and PATCH. (GH-51)
  • Receive and send multiple cookies. (GH-84)

scalatra-specs2

  • Support mutable (unit)specifications. (GH-123)

scalatra-scalatest

  • New convenience traits for Suites other than FunSuite. (GH-21)
  • For convenience, ScalatraSuite now extends MustMatchers and ShouldMatchers.

scalatra-website

Scalatra is a tiny, Sinatra-like web framework for Scala.