Skip to content

Releases: etorreborre/specs2

Please skip 5.1.0 and 4.18.0

04 Nov 18:13
Compare
Choose a tag to compare

Those 2 versions have been released by mistake. The PR which led to their creation has now been reverted. See #1116

4.x release with a dependency on scala-xml-2.0

27 Sep 08:26
Compare
Choose a tag to compare

Thanks to @mkurz for doing that upgrade!

Maintenance release

21 Jun 21:56
Compare
Choose a tag to compare
  • fix: do not show a timeout exception as skipped
  • fix: #1067 remove a bad trailing comma to fix the community build
  • fix: #1069 fix the navigation of json strings with matchers
  • fix: fixed some infinitely recursive extension methods (~ and ~/ in mutable specs) and ns.updateHead in org.specs2.html.Htmlx

Cross versions - new strategy

08 Apr 12:26
Compare
Choose a tag to compare

This release changes a bit the strategy for using specs2 versions across Scala versions (from what is described here).

There is now:

  1. a full version of specs2, 4.15.0, for Scala2 (2.12 and 2.13) with all the usual features, developed from the specs2-4.x-maintenance branch

  2. a version of specs2, 4.15.0, for Scala3 based on limited features (read about the limitations here) but mostly compatible with the specs2 source code used with Scala 2. That version comes from the specs2-cross branch.

  3. a full version of specs2, 5.0.0, for Scala3 (developed on the main branch). That version is not backward compatible with other 4.x versions

The idea is that:

  • if you want to stay on Scala2 with no intent yet of migrating to Scala3, you can use a version >= 4.15 && < 5

  • if you want to cross-compile for Scala2 and Scala3, you can use a version >= 4.15 && < 5, but you might have to do some small changes to your source code (or have less features like auto-examples)

  • if you want to only use Scala 3 you can use versions >= 5

This is a delicate setup but I hope it will help you migrate gradually to Scala 3. Please don't hesitate to ask questions if you have any issue migrating your code.

Note: you can ignore the 4.13.1-cross artefact

specs2 version cross compiled for Scala 2.12, 2.13 and 3.1

21 Mar 09:31
Compare
Choose a tag to compare

This version of specs2 provides an interim support for Scala 2.12, 2.13 and 3.1.

In order to be compatible with all Scala versions some features had to be removed (like macro-based features) and you might have to adapt your code. For example:

  • auto examples don't work anymore with immutable specifications
  • expectations must be expressed as value must matcher or value must not(matcher), and avoid expressions like a must not be something. This is in line with the new specs2 5.x version
  • type inference with some matchers (like beLike or contain) might require some type annotations
  • implicit resolution can have some slight differences in behaviour (and produce different failure messages for matchers for example)
  • specs2-mock has been removed (you need to use ScalaMock instead)
  • the around function (and corresponding trait) which is using the now deprecated DelayedInit feature is not working anymore

This version is provided as a best effort for bridging the gap between Scala 2 and Scala 3 but it is recommended that you switch to a specs2 5.x version (only available for Scala 3) if you can because this will be the actively maintained version.

Thanks for reporting any issue with this version, I will try to address it if it is blocking your migration process.

Maintenance release

13 Jan 09:51
Compare
Choose a tag to compare

Fixed #1048 (threads leak) which was a regression introduced by #1027 ("threadsNb has no effect")

Fixed the indentation in the user guide

12 Sep 12:43
Compare
Choose a tag to compare

This was broken because of scalafmt

Maintenance release

12 Sep 12:42
Compare
Choose a tag to compare
  • Made ExecutionEnv consistent across JVM and JS (thanks to @armanbilge)
  • put more modules under JS compilation

Fixes a regression with PendingUntilFixed (see #987)

09 Sep 10:38
Compare
Choose a tag to compare

Added back the Before/After All traits

09 Sep 10:39
Compare
Choose a tag to compare

for better backward compatibility