Open younata opened 5 months ago
After I looked in to this for about a minute, I remembered why Nimble uses XCTFail on non-apple platforms: There isn't an API to grab the current test case, and there isn't an obviously good place for Nimble to register its testcasetracker like there is in Objective-C environments.
Filed https://github.com/apple/swift-corelibs-xctest/issues/491.
Currently, if you're running Nimble on non-Apple platforms, we report test failures using XCTFail. Which works, but is a subpar experience.
Let's instead use what Quick uses to report errors and use
XCTestCase.recordFailure()
.