I've been using GHUnit in my project because the built in unit testing was so terrible in XCode 3.
However, now that they've been fixed in XCode 4, I want to switch back to the official testing framework.
I added a new "Cocoa Touch Unit Testing Bundle", which also adds a test case designed to fail, but "Test" under the Product menu is still grayed out.
What else do I need to do to get unit tests running in my project?
You need to edit the scheme for your main application target.
The "Test" option in the product menu is no longer grayed out.
You probably need to make sure that your active scheme is pointing at the right target (your test bundle).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With