• 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: Making Application Classes Available to Unit Tests
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making Application Classes Available to Unit Tests


  • Subject: Re: Making Application Classes Available to Unit Tests
  • From: Bill Garrison <email@hidden>
  • Date: Mon, 13 Apr 2009 09:59:25 -0400

Mark,

You can try GHUnit for iPhone app testing (and OS X desktop apps).

<http://rel.me/2009/02/21/unit-testing-for-mac-os-x-and-iphone-ghunit/>

I added a patch to enable running specific test suites through an argument on the unit test app executable.

<http://standardorbit.net/blog/2009/03/running-selected-unit-tests-with-ghunit/ >

Bill

On Apr 9, 2009, at 7:02 PM, Mark Kieling wrote:

Hi,

I am new to unit testing in Xcode (3.1.3) using the SenTest framework. My tests get linking errors if they reference application defined classes.

I have set up my iPhone project with a target for unit tests. I have added the following environment variables to the executable as well as the "-SenTest All" argument.

DYLD_INSERT_LIBRARIES
XCInjectBundle
XCInjectBundleInto
DYLD_FALLBACK_FRAMEWORK_PATH

The test target has been made a dependency of the app target. However the tests only appear to run at compile time.

I would like to have the test run in the app when it launches (in the simulator of course) and exercise application classes. Any suggestions on how to debug this or how to configure Xcode to do what I want to do would be greatly appreciated.

- Mark
_______________________________________________
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

_______________________________________________ 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: 
 >Making Application Classes Available to Unit Tests (From: Mark Kieling <email@hidden>)

  • Prev by Date: Resources flattened out into a single directory in the .app package
  • Next by Date: Is anyone here from New Delhi?
  • Previous by thread: Making Application Classes Available to Unit Tests
  • Next by thread: how to debug ruby cocoa with Xcode?
  • Index(es):
    • Date
    • Thread