Skip to content

Releases: scalameta/munit

v1.1.0

21 Jan 18:13
Compare
Choose a tag to compare

Important changes

These changes control output in case of assert failure and include minor API changes (only in rare cases of method overrides), hence minor version bump:

  • Add DiffOptions implicit parameter:
  • Diff: swap the order of expected-vs-obtained (#875) @kitbellew
    • previously, the actual results were shown in red (removed) and expected in green (added) which led to occasional cases of confusion with standard git diff output (which shows these changes in the "normal" way)

Miscellaneous

Build and dependency updates

v1.0.4

07 Jan 11:38
7c8a172
Compare
Choose a tag to compare

Notable Changes

Pull Requests

v1.0.3

02 Dec 12:37
3cce7bd
Compare
Choose a tag to compare

Notable Changes

Pull Requests

v1.0.2

13 Sep 10:46
a4f195e
Compare
Choose a tag to compare

This release changes the Location to not include full path (instead a relative one independent of the machine), which while not a binary breaking change, it might still be relevant to a number of users.

Pull Requests

v1.0.1

12 Aug 16:08
ab14836
Compare
Choose a tag to compare

Pull Requests

v1.0.0

22 May 10:31
202706f
Compare
Choose a tag to compare

v1.0.0-RC1

25 Apr 09:04
202706f
Compare
Choose a tag to compare

This is hopefully the last version before the real 1.0.0. That release will be accompanied by actual release notes that encompass all the changes done since 0.x series.

What's Changed

New Contributors

Full Changelog: v1.0.0-M12...v1.0.0-RC1

v1.0.0-M12

18 Apr 10:47
Compare
Choose a tag to compare

Pull Requests

v1.0.0-M11

02 Feb 14:18
d687fc7
Compare
Choose a tag to compare

⚠️ Breaking Changes ⚠️

This release restores the fixture ordering to match that of the v0.7.x release line.
The ordering was originally changed in v1.0.0-M1, and has been a source of confusion.

Going forward the order will be:

  MySuite.beforeAll()
  myFixture.beforeAll()
  MySuite.beforeEach(test-1)
  myFixture.beforeEach(test-1)
  myFixture.afterEach(test-1)
  MySuite.afterEach(test-1)
  myFixture.afterAll()
  MySuite.afterAll()
Click to see this vizualized as a diff
-- v1.0.0-M1 - v1.0.0-M10 order
++ v0.7.x / +v1.0.0-M11 order
  MySuite.beforeAll()
  myFixture.beforeAll()
  MySuite.beforeEach(test-1)
  myFixture.beforeEach(test-1)
- MySuite.afterEach(test-1)
  myFixture.afterEach(test-1)
+ MySuite.afterEach(test-1)
- MySuite.afterAll()
  myFixture.afterAll()
+ MySuite.afterAll()

Customizing the ordering of beforeAll / afterAll methods

If you require the previous (v1.0.0-M1 - v1.0.0-M10) ordering, you can restore it by separating your fixture into two fixtures, a "before fixture" and "after fixture" and then specify them in an override of munitFixtures. If fact, this is exactly how the v0.7.x style ordering was restored in #724.

A documented example should be available in the near future (#739)

Notable Changes

What's Changed

New Contributors

Full Changelog: v1.0.0-M10...v1.0.0-M11

v1.0.0-M10

15 Sep 17:25
bc67c6c
Compare
Choose a tag to compare

This release fixes async tests on Scala Native when overriding the munitExecutionContext.
See issue #695 for more details.

What's Changed

Full Changelog: v1.0.0-M9...v1.0.0-M10