Skip to content

Releases: scalameta/munit

MUnit v0.7.15

01 Nov 09:23
d0c18b6
Compare
Choose a tag to compare

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.
Screenshot 2020-10-18 at 09 51 45-fs8

Breaking changes

  • munit.FailException no longer extends Exception. Now, it extends java.lang.AssertionError in order to improve the IntelliJ integration.
  • assertEquals() errors no longer throw munit.FailException. Instead, they throw munit.ComparisonFailException.

To upgrade to the new version, replace usages of FailException with FailExceptionLike[T]

-- before
-- now

try { ... }
catch {
- case _: FailException =>
+ case _: FailExceptionLike[_] =>

Bug fixes

Scala Steward

MUnit v0.7.13

01 Oct 09:30
Compare
Choose a tag to compare

New features

Bug fixes

Documentation

  • doc: flesh out the conversion to ScalaTest docs a good deal (#166) @Kazark

Internal

Scala Steward

MUnit v0.7.12

28 Aug 16:40
0e232af
Compare
Choose a tag to compare

Pull Requests

MUnit v0.7.11

12 Aug 20:43
1330dda
Compare
Choose a tag to compare

Pull Requests

  • Support ScalaTest 3.1+ in PantsFramework (#176) @Duhemm

Documentation

  • Add suggestion on how to migrate Properties (#171) @gabro

Scala Steward

MUnit v0.7.10

25 Jul 07:47
80e0eb1
Compare
Choose a tag to compare

Pull Requests

  • Update test-release.sh to latest dotty (#170) @gabro
  • Update Scala 3 versions to 0.25.0 and 0.26.0-RC1 (#168) @tgodzik
  • doc: add a few tips on converting from match-style assertions (#164) @Kazark
  • doc: add advice on converting from WordSpec style (#163) @Kazark

MUnit v0.7.9

11 Jun 16:11
ad33e90
Compare
Choose a tag to compare

MUnit v0.7.8

11 Jun 16:10
bff6959
Compare
Choose a tag to compare

Fix #138 - duplicate names with bracket characters (#140) @olafurpg

MUnit v0.7.7

01 Jun 09:57
e8653ed
Compare
Choose a tag to compare
  • Preserve stack trace of unexpected exceptions in ScalaCheckSuite (#129) @olafurpg

MUnit v0.7.6

10 May 11:29
e038fe1
Compare
Choose a tag to compare

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

MUnit v0.7.3

20 Apr 17:00
f61429f
Compare
Choose a tag to compare

Pull Requests

Docs

Scala Stweard