Quick/Nimble

`throwAssertion` not working with Swift Concurrency

funct7 opened this issue · 1 comments

funct7 commented
  • I have read CONTRIBUTING and have done my best to follow them.

What did you do?

func foo() async { fatalError() }

class AsyncTest : XCTestCase {
    
    func test() async {
        await expect { await foo() }.to(throwAssertion()) // crashes
    }
    
}

What did you expect to happen?

I expect the test to run without stopping at the exception breakpoint.

I believe this issue stems from CwlPreconditionTesting not being able to handle Swift Concurrency code as described here.
Just wanted to make sure people were aware of this issue.

What actually happened instead?

The test stalls

Environment

List the software versions you're using:

  • Nimble: v12.2.0
  • Xcode Version: 14.3.1 (14E300c)
  • Swift Version: 5.x (Ran pod try nimble)

Please also mention which package manager you used and its version. Delete the
other package managers in this list:

  • Cocoapods: 1.12.1 (Use pod --version in Terminal)

Thanks for alerting people!

I don't know how to address this. Though, as you noted, this is more for awareness than anything else at the moment.

I'm going to leave this open until it's actually fixable.