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 relevantit
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
- Create funding.yml by @jessesquires in #1147
- Report skipped tests to Xcode by @amomchilov in #1098
- Bump danger from 8.6.0 to 8.6.1 by @dependabot in #1148
- Renamed Configuration -> QCKConfiguration on documentation by @takehilo in #1152
- Fix sporadic crashes caused by finding classes that don't play well with isSubclass(of:) by @younata in #1156
- Raise minimum supported versions to macOS 10.15, iOS 13, tvOS 13 by @younata in #1146
- version up Nimble in Package.swift by @kimxwan0319 in #1153
- Update Nimble submodule checkout to refer to the Nimble v10.0.0 commit by @younata in #1157
- Fix tests broken by Nimble 10 update by @younata in #1158
- Add @younata to funding.yml by @younata in #1164
- Bump danger from 8.6.1 to 9.0.0 by @dependabot in #1168
- Allow throwing in a test without producing an unexpected error by @bnickel in #1165
- Allow rerunning individual examples in Xcode by @bnickel in #1166
- Bump fkirc/skip-duplicate-actions from 4.0.0 to 5.1.0 by @dependabot in #1171
- Introduce an
assignBefore
operator by @esilverberg in #1169 - Bump fkirc/skip-duplicate-actions from 5.1.0 to 5.2.0 by @dependabot in #1172
- Add support for xcode 14 and swift 5.7 by @younata in #1174
- Swift Async/Await Support by @younata in #1160
- Update Nimble to V11 by @younata in #1175
New Contributors
- @amomchilov made their first contribution in #1098
- @takehilo made their first contribution in #1152
- @kimxwan0319 made their first contribution in #1153
- @bnickel made their first contribution in #1165
- @esilverberg made their first contribution in #1169
Full Changelog: v5.0.1...v6.0.0