Skip to content
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

When running on non-Apple platforms, report test failures using XCTestCase.recordFailure() #1146

Open
younata opened this issue Jun 12, 2024 · 1 comment

Comments

@younata
Copy link
Member

younata commented Jun 12, 2024

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().

@younata
Copy link
Member Author

younata commented Jun 13, 2024

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 swiftlang/swift-corelibs-xctest#491.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant