Skip to content

Releases: etorreborre/specs2

Fix for `ok and failure` when using `ThrownExpectations`

04 Jul 15:42
8a259bf
Compare
Choose a tag to compare

Scala-native upgrade

07 Jun 07:34
c0e99aa
Compare
Choose a tag to compare

Scala-native has been upgraded to 0.5 thanks to @xuwei-k.

Revert to using Scala 3.3.3 LTS

05 Jun 08:09
0327844
Compare
Choose a tag to compare

Added back a Scope trait for 5.x

23 May 21:21
38567f8
Compare
Choose a tag to compare

Version 5 dropped the Scope trait for mutable specifications, to initialize some values and make them accessible to examples in mutable specifications.

That trait is now back as org.specs2.execute.Scope:

class MySpec extends mutable.Specification:
  "e1" in new MyScope:
    someValue === 1
  
trait MyScope extends Scope: 
  val someValue: Int = 1

Filter examples based on a TestSelector with sbt

24 Jan 15:26
c9049ff
Compare
Choose a tag to compare

Filter examples based on a TestSelector with sbt

24 Jan 15:26
d0f255d
Compare
Choose a tag to compare

Execution environment fixes

21 Jan 21:33
34584de
Compare
Choose a tag to compare

This release fixes an important issue where specs2 execution environment is not properly shutdown.
It is strongly advised to upgrade to this version.

Note that there are some low-level breakages in this release:

  • The shutdown functions on Env have changed
  • A number of default methods to build low-level components like CustomInstances, SpecificationFinder, PrinterFactory have been removed. Those components now require an explicit Env
  • The OwnEnv and OwnExecutionEnv traits have been reworked to operate on their own environment, without needing to make a copy of the specification Env. This avoids some easy mistakes where it is fairly easy to shutdown the specs2 execution environment
  • There is a new argument, discardRejectedFutures, set to true by default, which avoids printing futures rejected by a thread pool which can happen on shutdown when testing for termination for example

Mainteance release

04 Jan 12:29
ad4e1d1
Compare
Choose a tag to compare

fix #1209: do a proper check for JSON matchers when comparing strings or boolean values (the previous and incorrect version could end-up asserting that 1 == "1".

Maintenance release

04 Jan 12:32
34d484c
Compare
Choose a tag to compare

fix #1209: do a proper check for JSON matchers when comparing strings or boolean values (the previous and incorrect version could end-up asserting that 1 == "1".

fix #1183. That fix was incorrectly backported to the 4.x series.

Maintenance release

05 Nov 17:29
Compare
Choose a tag to compare

This release fixes 2 issues:

  • #1200: by adding a MockThrownExpectations object which can be used with specification throwing exceptions on failures (like SpecWithJUnit)
  • #1201: fix incorrect failure messages for traversable matchers when using atLeast, atMost, exactly