Skip to content

v1.0.0-M11

Compare
Choose a tag to compare
@valencik valencik released this 02 Feb 14:18
· 147 commits to main since this release
d687fc7

⚠️ 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