Releases: scalameta/munit
MUnit v0.7.17
Scala.js for Scala 3
Breaking change
Scala.js v0.6.x is no longer supported. If you are still using v0.6.x then you can continue to use MUnit v0.7.16 but you will need to upgrade to Scala.js v1.x in order to benefit from future MUnit releases.
Upgrades
- Update sbt-dotty to 0.4.6 (#251) @scala-steward
- Update sbt-scalafix to 0.9.23 (#245) @scala-steward
- Update mdoc, sbt-mdoc to 2.2.11 (#244) @scala-steward
Internal
MUnit v0.7.16
MUnit v0.7.15
This is the last release in the v0.7.x series. The next release will be v1.0.0-M1 and will include several binary and source breaking changes. Most users should not be affected by the upcoming breaking changes in v1, the core ideas and APIs will remain mostly unchanged. For more details see https://github.com/scalameta/munit/milestone/1
ScalaCheck integration for Scala 3
Previously, the munit-scalacheck module was not available for Scala 3. It was only possible to use the ScalaCheck integration from Scala 3 by using the withDottyCompat()
helper. Now, munit-scalacheck is released for Scala 3 so that withDottyCompat()
is no longer necessary.
Improved IntelliJ integration
- MUnitRunner.filter should mutate state as in other standard JUnitRunners (#212) @unkarjedy
- Introduce a new "failComparison()" helper (#222) @olafurpg
- Make FailException extend AssertionError, fixes #215 (#220) @olafurpg
The upcoming release of the Scala IntelliJ plugin will include significantly improved support for MUnit, see https://youtrack.jetbrains.com/issue/SCL-17360
For example, assertEquals()
errors can now be viewed in a diff explorer.
Breaking changes
munit.FailException
no longer extendsException
. Now, it extendsjava.lang.AssertionError
in order to improve the IntelliJ integration.assertEquals()
errors no longer throwmunit.FailException
. Instead, they throwmunit.ComparisonFailException
.
To upgrade to the new version, replace usages of FailException
with FailExceptionLike[T]
-- before
-- now
try { ... }
catch {
- case _: FailException =>
+ case _: FailExceptionLike[_] =>
Bug fixes
- Fix #211, handle test case on last line in the source file (#226) @olafurpg
- Fix #179, handle case when obtained is a single newline character (#227) @olafurpg
Scala Steward
- Update sbt-dotty to 0.4.5 (#234) @scala-steward
- Enable mima (#237) @olafurpg
- Update mdoc to 2.2.10 (#233) @scala-steward
- Update google-cloud-storage to 1.113.2 (#230) @scala-steward
- Update sbt-dotty to 0.4.4 (#224) @scala-steward
- Update scalafmt-core to 2.7.5 (#219) @scala-steward
- Update sbt-dotty to 0.4.3 (#218) @scala-steward
- Update junit to 4.13.1 (#216) @scala-steward
- Update scalafmt-core to 2.7.4 (#214) @scala-steward
MUnit v0.7.13
New features
- New
assertEqualsDouble
andassertEqualsFloat
that accept a delta parameter (#192) @OlivierBlanvillain - Add method overload to avoid warning in FunFixture. (#184) @olafurpg
Bug fixes
- Report accurate ScalaCheck seed on failing test (#195) @nevillelyh
Documentation
Internal
- Fix CI checks (#203) @tgodzik
- upgrade to sbt 1.4 (#193) @SethTisue
Scala Steward
- Update scalafmt-core to 2.7.3 (#209) @scala-steward
- Update sbt to 1.4.0-RC2 (#208) @scala-steward
- Update sbt-scalafix to 0.9.21 (#207) @scala-steward
- Update scala-xml to 2.0.0-M2 (#201) @scala-steward
- Update scalafmt to 2.7.2 (#206) @tgodzik
- Update google-cloud-storage to 1.113.1 (#202) @scala-steward
- Update sbt-mdoc to 2.2.9 (#204) @scala-steward
- Update google-cloud-storage to 1.113.0 (#190) @scala-steward
- Update sbt-scalafix to 0.9.20 (#187) @scala-steward
- Update sbt-mdoc to 2.2.7 (#197) @scala-steward
- Update sbt-scalafix to 0.9.19 (#162) @scala-steward
- Update google-cloud-storage to 1.112.0 (#181) @scala-steward
- Update sbt-buildinfo to 0.10.0 (#174) @scala-steward
MUnit v0.7.12
Pull Requests
- Update sbt-dotty to 0.4.2 (#180) @scala-steward
- Update dotty versions to 0.26.0 and 0.27.0-RC1 (#182) @tgodzik
MUnit v0.7.11
Pull Requests
Documentation
Scala Steward
- Update sbt to 1.3.13 (#155) @scala-steward
- Update sbt-mdoc to 2.2.3 (#153) @scala-steward
- Update sbt-scalafix to 0.9.18 (#158) @scala-steward
- Update google-cloud-storage to 1.111.2 (#160) @scala-steward
MUnit v0.7.10
MUnit v0.7.9
- Update to latest Dotty 0.25.0-RC1 (#144) @olafurpg
- Update sbt-scalafix to 0.9.16 (#136) @scala-steward
- Update sbt to 1.3.12 (#139) @scala-steward