v11.0.0
This closes the v11.0.0 milestone.
Highlights
Primarily, this release now supports running tests in async contexts.
Fixed
toEventually
et. al. now works from background threads. #1000toEventually
et. al. now work in async tests. #1007
New
- Async/await support in expectation expressions (e.g.
await expect(await someAsyncFunction()).to(...)
). #1004 append(details:)
now respects whitespace that is in the message. #1001- watchOS support. #916
- You can now directly check if an expectation has passed or not. #995
Breaking
- Raised version requirements to Swift 5.6, iOS 13, macOS 10.15, tvOS 13, and watchOS 6. #984
- The
Expectation
struct is now a protocol. There are 2 concrete implementations,SyncExpectation
andAsyncExpectation
.AsyncExpectation
does not supporttoEventually
, and is meant for awaiting on async functions.SyncExpectation
is effectively the olderExpectation
implementation, and works as it used to. #1004
Auto-generated release notes
What's Changed
- Add support for watchOS by @JosephDuffy in #916
- Add @younata to funding.yml by @younata in #994
- Expose whether an expectation has passed and provide an option to throw by @bnickel in #995
- Raise minimum required OS and Swift Versions to Async-Support versions. by @younata in #999
- Don't strip whitespace from appended newlines by @younata in #1001
- Allow toEventually to run on background threads by @younata in #1000
- Allow using async/await in expect by @younata in #1004
- Get toEventually et al working in async contexts. by @younata in #1007
New Contributors
- @JosephDuffy made their first contribution in #916
- @bnickel made their first contribution in #995
Full Changelog: v10.0.0...v11.0.0