Re: Unhelpful help
Re: Unhelpful help
- Subject: Re: Unhelpful help
- From: Jens Alfke <email@hidden>
- Date: Tue, 15 Jul 2014 12:32:05 -0700
On Jul 15, 2014, at 10:51 AM, William Squires < email@hidden> wrote: I'm trying to find documentation on XCTestCase, so I opened my project, went to the <project name>Tests folder, selected the <project name>Tests.h file, and highlighted "XCTestCase" (on the @interface line), expecting the Quick Help panel to provide a link to the class reference, but it just links to NSObject. I also looked up XCTestCase on developer.apple.com, to no avail either.
The headers have a lot of documentation comments, particularly XCTestCase.h and XCTestAssertions.h. I’ve been able to figure out everything I’ve needed from reading those. No idea why this documentation didn’t get compiled into the SDK doc library.
Specifically, if I go File > New > Objective-C Test Case class, how do I integrate the tests in said new file with the existing <project name>Tests.m - the newly created file is only a .m, and no .h is generated? What gives? Please help! :)
It doesn’t create a header because one’s not needed by default. But there’s nothing stopping you from adding one, if you want one test case class to provide utility class methods for another one to call. Or you could make a shared helper class for your tests to use.
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden