• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unhelpful help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Unhelpful help (From: William Squires <email@hidden>)

  • Prev by Date: Re: Unhelpful help
  • Next by Date: Re: Suddenly, class interfaces in xib get more stuff
  • Previous by thread: Re: Unhelpful help
  • Next by thread: Re: Unhelpful help
  • Index(es):
    • Date
    • Thread