Skip to content

v6.0.0

Compare
Choose a tag to compare
@younata younata released this 01 Nov 04:14
· 191 commits to main since this release

This closes the v6.0.0 milestone.

Highlights

See additional details under the auto-generated release notes below.

Fixed

  • No more sporadic crashes attempting to detect subclasses #1156
  • Rerunning an individual test #1166
  • Skipped tests are reported to Xcode #1098

New

  • Async/await support. All tests now run in an async context. #1160
  • You can now throw a StopTest error to end a test prematurely without it being reported as an error. #1165
  • Added the justBeforeEach operator, which takes a closure and runs it immediately prior to the relevant it tests. #1169 For example
var ordering: [Int] = []
beforeEach {
    ordering.append(1)
}

justBeforeEach {
    ordering.append(3)
}

beforeEach {
    ordering.append(2)
}

it("runs justBeforeEach after the other beforeEach's") {
    expect(ordering).to(equal([1, 2, 3]))
}

Breaking

  • This version raises minimum required version to Swift 5.6, and required OS to macOS 10.15, iOS 13, and tvOS 13.
  • aroundEach is removed from the Objective-C API #1160
  • Again, with the async support, all tests now run in an async context. This will require you to make changes, especially if you use Nimble.

Auto-Generated Release Notes

What's Changed

New Contributors

Full Changelog: v5.0.1...v6.0.0