Skip to content

Releases: etorreborre/specs2

Upgraded to the lastest scala native version

15 Oct 08:58
52f8780
Compare
Choose a tag to compare

This release solves a long-standing issue with Scala-native: #1239.

Fix for the HTML documentation

12 Oct 16:55
846d0a4
Compare
Choose a tag to compare

This release fixes:

  • A missing import in the docs showing how to produce an index file for the HMTL reporter.

  • More importantly, a proper output for HTML docs. Many pieces of HTML were duplicated due a fun bug involving the natural transformation of Id to Action. I don't know yet what is the most lawful fix: making Id lazy (equivalent to () => X) or doing what I did and making the NaturalTransformation.apply parameter lazy. Anyway this fixes this issue!

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".