-
-
Notifications
You must be signed in to change notification settings - Fork 914
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
Xcode test navigator integration #1
Comments
Turns out Specta has same issue: specta/specta#83 |
Specta works on Xcode 5 and prior, but I'm not sure why. I believe XCTest used to infer the name of the test case by taking In Xcode 6, it appears to use Maybe I can get around this by defining appropriately named methods at runtime. |
This fixes issue #1: Xcode test navigator integration. As of Xcode 6, each test invocation's selector is used to determine the name displayed in the test navigator. Specta and Quick both used the same instance method (`-[QuickSpec runExampleAtIndex:]`, in Quick's case) to run each example. As a result, all tests in the same spec had the same name, causing each example to "overwrite" each previous one in the navigator. This caused several issues, including red lines to indicate test failure in Xcode suddenly disappearing when the next example finished running. During `+[QuickSpec testInvocations]`, define a new instance method for each example. Then, return an invocation that executes that new instance method
Get the unit tests building & passing for macOS and iOS targets
Only allow x86_64 for OS X builds
Currently tests do not appear correctly in Xcode's test navigator.
The text was updated successfully, but these errors were encountered: