Releases: etorreborre/specs2
4.x release maintenance
This release upgrades Mockito to 5.20.0 which means that Java 8 is not supported anymore (see [here]).
Other dependencies and build plugins have also been updated.
Maintenance release
What's Changed
- feat: introduce
FileSystem.unjarOnceby @etorreborre in #1250 - Improve scaladocs of
eventuallyby @donce in #1287 - Treat
sbt.testing.TestWildcardSelectors correctly. by @dubinsky in #1327 - Provide an
IsEmptyinstance forIterableOnceby @jcazevedo in #1345
Upgraded to the lastest scala native version
This release solves a long-standing issue with Scala-native: #1239.
Fix for the HTML documentation
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
IdtoAction. I don't know yet what is the most lawful fix: makingIdlazy (equivalent to() => X) or doing what I did and making theNaturalTransformation.applyparameter lazy. Anyway this fixes this issue!
Fix for `ok and failure` when using `ThrownExpectations`
This release fixes issue #1255.
Scala-native upgrade
Scala-native has been upgraded to 0.5 thanks to @xuwei-k.
Revert to using Scala 3.3.3 LTS
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.
Added back a Scope trait for 5.x
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 = 1Filter examples based on a TestSelector with sbt
Please see issue #1216
Filter examples based on a TestSelector with sbt
Please see issue #1216