specs2

Software Specifications for Scala

OTHER License

Stars
734
Committers
88

Bot releases are hidden (Show)

specs2 - Fix for `ok and failure` when using `ThrownExpectations` Latest Release

Published by etorreborre 4 months ago

This release fixes issue #1255.

specs2 - Scala-native upgrade

Published by etorreborre 4 months ago

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

specs2 - Revert to using Scala 3.3.3 LTS

Published by etorreborre 5 months ago

As prescribed here: https://www.scala-lang.org/blog/2024/02/29/scala-3.4.0-and-3.3.3-released.html.

Thanks to @TonioGela for noticing this.

specs2 - Added back a Scope trait for 5.x

Published by etorreborre 5 months ago

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
specs2 - Filter examples based on a TestSelector with sbt

Published by etorreborre 9 months ago

Please see issue #1216

specs2 - Filter examples based on a TestSelector with sbt

Published by etorreborre 9 months ago

Please see issue #1216

specs2 - Execution environment fixes

Published by etorreborre 9 months ago

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
specs2 - Maintenance release

Published by etorreborre 10 months ago

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.

specs2 - Mainteance release

Published by etorreborre 10 months ago

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

specs2 - Maintenance release

Published by etorreborre 12 months ago

This release fixes 1 issue:

  • #1201: fix incorrect failure messages for traversable matchers when using atLeast, atMost, exactly
specs2 - Maintenance release

Published by etorreborre 12 months ago

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
specs2 - Maintenance release

Published by etorreborre about 1 year ago

This release fixes 2 issues:

  • #1185 "Inconsistent behavior for Props created with Matcher vs created with extension method 'must'"
  • #1183 "json matcher selecting 0th element on null array succeeds but should fail"

In addition the success messages for numeric matchers (be less, be greater, etc...) have been improved.

specs2 - Fix for an inconsistent behavior in forms props

Published by etorreborre about 1 year ago

This is a fix for issue #1185

specs2 - Fix for #1183: error in JsonMatchers

Published by etorreborre about 1 year ago

This release fixes a bug with the JsonMatchers. Please read the description at #1183.

specs2 - Maintenance release

Published by etorreborre over 1 year ago

This release upgrades the mockito dependency to the 4.x series (instead of 3.x)

specs2 - Maintenance version

Published by etorreborre over 1 year ago

This version pushes a simple change (backport a JsonMatchers object) and fixes the incorrectly published 4.19.1 jars for Scala 3.

specs2 - Replacement for 5.1.0

Published by etorreborre almost 2 years ago

specs2 - Replacement for 4.18.0

Published by etorreborre almost 2 years ago

specs2 - Please skip 5.1.0 and 4.18.0

Published by etorreborre almost 2 years ago

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

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

Published by etorreborre about 2 years ago

Thanks to @mkurz for doing that upgrade!