• 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: Testing a framework using SenTestingKit and the debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testing a framework using SenTestingKit and the debugger


  • Subject: Re: Testing a framework using SenTestingKit and the debugger
  • From: Amy <email@hidden>
  • Date: Fri, 15 Jul 2005 01:50:35 -0700


On Jul 15, 2005, at 1:11 AM, Chris Hanson wrote:

On Jul 15, 2005, at 12:54 AM, Amy wrote:
Using info gathered from this list and the instructions in Apple's Xcode 2.1 User Guide I created a custom executable that points to otest and has the following settings:

General Pane:
    executable path: /Developer/Tools/otest
    working directory set to Build Products directory

Arguments Pane:
    Arguments to be passed on launch are:
        -SenTest All
         AFramerworkTestTarget.octest

    Variables to be set in the environment are:
        DYLD_INSERT_LIBRARIES = /System/Library/PrivateFrameworks/DevToolsBundleInjection.framework/DevToolsBundleInjection
        XCInjectBundle = $(BUILT_PRODUCTS_DIR)/AFramerworkTestTarget.octest

I think my instructions on the list earlier weren't completely clear, they were specific to debugging application unit tests.

If you want to debug framework unit tests, you'll want to specify these two environment variables instead of what you have above:

  DYLD_FRAMEWORKPATH = $(BUILT_PRODUCTS_DIR)
  DYLD_LIBRARY_PATH = $(BUILT_PRODUCTS_DIR)

This will tell the loader to search your build directory for frameworks & libraries to load before searching anywhere else, ensuring that the version of the framework you built is the one your tests will be run against.

  -- Chris



Thank you! 

My test case steps through the debugger and even into the framework perfectly now.

I did change  DYLD_FRAMEWORKPATH to DYLD_FRAMEWORK_PATH, since the debugger complained about that (I assume that was just a late-night typo which I mention here just for completeness in the archive).

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

  • Follow-Ups:
    • Re: Testing a framework using SenTestingKit and the debugger
      • From: Chris Hanson <email@hidden>
References: 
 >Testing a framework using SenTestingKit and the debugger (From: Amy <email@hidden>)
 >Re: Testing a framework using SenTestingKit and the debugger (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: using gcc_select to switch to 3.x
  • Next by Date: Might not respond to selector, an error
  • Previous by thread: Re: Testing a framework using SenTestingKit and the debugger
  • Next by thread: Re: Testing a framework using SenTestingKit and the debugger
  • Index(es):
    • Date
    • Thread