• 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: Chris Hanson <email@hidden>
  • Date: Fri, 15 Jul 2005 01:11:51 -0700

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


 _______________________________________________
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: Amy <email@hidden>
References: 
 >Testing a framework using SenTestingKit and the debugger (From: Amy <email@hidden>)

  • Prev by Date: Testing a framework using SenTestingKit and the debugger
  • Next by Date: error: array bound is not an integer constant
  • Previous by thread: Testing a framework using SenTestingKit and the debugger
  • Next by thread: Re: Testing a framework using SenTestingKit and the debugger
  • Index(es):
    • Date
    • Thread