Releases: scalameta/munit
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
MUnit v0.7.8
MUnit v0.7.7
MUnit v0.7.6
Bug fixes
This release contains several fixes to critical bugs that could cause failing tests to pass without an error message.
- Regenerate default seed at every prop iteration (#124) @gabro
assertEquals
would sometimes pass when it should fail (#125) @olafurpg- tests with duplicate name+tags+location would be silently ignored (#125) @olafurpg
- Fix Scala.js v1.0.0 linking error (#120) @tindzk
New features
By default, MUnit trims exception stack traces to avoid printing redundant
information to the console. Use the new -F
test framework flag to print full stack
traces, which can be helpful when debugging a cryptic error.
In sbt, test framework flags can be passed to the testOnly
task.
$ sbt
> myproject/testOnly -- -F
Pull requests
- Several combined fixes (#125) @olafurpg
- Update sbt-mdoc to 2.2.0 (#123) @scala-steward
- Add support for Dotty 0.23.0 (#117) @olafurpg
- Update sbt-scalafix to 0.9.15 (#110) @scala-steward
- Update sbt-ci-release to 1.5.3 (#111) @scala-steward
- Upgrade to latest Dotty and 2.13 (#115) @olafurpg
MUnit v0.7.3
Pull Requests
Docs
Scala Stweard
- Update sbt-scalafmt to 2.3.4 (#102) @scala-steward
- Update google-cloud-storage to 1.107.0 (#105) @scala-steward
- Update sbt to 1.3.10 (#106) @scala-steward
- Update sbt-scalafix to 0.9.14 (#104) @scala-steward