Release v11.0.0 #1008
younata
announced in
Announcements
Release v11.0.0
#1008
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello friends!
I'm very pleased to announce Nimble version 11. Headlining features include async/await support, and watchOS support!
https://github.com/Quick/Nimble/releases/tag/v11.0.0
Notably, async/await now is support. With XCTest-based tests, you can use Nimble like so:
There are some constraints at the moment with the async expressions. Of note is that
toEventuallydoes not work with async expressions (that is,expect(await someAsyncFunction()).toEventually(...)will not even compile).Additionally, if you do use
toEventuallyin an async context, you will need toawaiton the result of the entire matcher, like so:This is because the old way of using
toEventuallydoes not work in async tests. Furthermore, our workaround (basically, usingTask.yieldinstead of controlling the RunLoop) does not work in synchronous tests. Thus, we have two separate implementations of thetoEventuallyfamily.This is important for users of Quick, because Quick 6 (soon to be released) will run ALL tests in an asynchronous context.
Thank you, I hope you have a great day. My apologies for the churn.
Beta Was this translation helpful? Give feedback.
All reactions