Search code examples
scalaspecs2

specs2 test does not fail


Considering the following

package stopwatch
import org.specs2.mutable.Specification

class StopWatchSpecs extends Specification {

  "This spec" should {

    "fail here" in {
      2 + 2 === 5
    }

  }

}

This test always succeeds (but it shouldn't) if i use the latest version of specs2 framework (3.8.5) as suggested by the quick start guide here

However it does fail (correctly) if i use an older version (2.5), does anyone have experienced the same behaviour?


Solution

  • This is fixed in specs2-core-3.8.6.