-
-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expecting an assertion, eventually #520
Comments
I am not seeing this issue on Xcode 9.2 / Swift 4.0, but after upgrading to Xcode 9.4 / Swift 4.1 I am experiencing the same issue described by @nevillco. Any updates on this? |
|
Thanks for the response @ikesyo. That makes sense! I am seeing another issue as well. Ever since upgrading to Xcode 9.4 / Swift 4.2 tests stop program execution when hitting an assertion. The tests do pass, but I have to hit "Continue program execution" every time an assertion is thrown. I don't know if this is due to a change in Xcode, Swift, or Nimble. I've included a quick example, cribbed from the code above. Note that this is not related to the async tests. Let me know if you need more information or if further discussion should be moved to a separate issue. Quick example cribbed from above: What to do?
What did you expect to happen? What actually happened instead? |
@kaganriedel That is #478 and it's fortunate that it will be resolved in a next patch version (#545). |
Wonderful! Thank you. 👍 |
Closing. |
What did you do?
Wrote the following test suite:
What did you expect to happen?
I would expect both tests to pass.
What actually happened instead?
The assertion inside
func testAssertionAsync()
does not get caught; I get the console message:Then, after a short delay, the test suite seems to reboot itself, and I get this console message:
After this, the tests complete, and
func testAssertionAsync()
fails, having not caught the assertion.Environment
The text was updated successfully, but these errors were encountered: