• 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
unit testing...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unit testing...


  • Subject: unit testing...
  • From: Bill Dudney <email@hidden>
  • Date: Thu, 27 Dec 2007 10:55:10 -0700

Hello All,

I am unable to get unit testing to happen on a very simple application.

Steps:
1) Create Unit Testing Bundle (called UnitTests in the attached project)
2) add the app as a dependency
3) switch to the unit test bundle as the active target
4) specify Bundle Loader and Test Rig to be the application executable for the unit test target
5) add the -SenTest All argument to the Executable (called DizBot in this example)
6) add DYLD_INSERT_LIBRARIES  = $(DEVELOPER_LIBRARY_DIR)/PrivateFrameworks/DevToolsBundleInjection.framework/DevToolsBundleInjection and XCInjectBundle to UnitTests.octest to the variables 

When I build and go i get;

2007-12-27 10:49:57.916 DizBot[7459:10b] Error loading .../UnitTests.octest/Contents/MacOS/UnitTests:  dlopen(...UnitTests.octest/Contents/MacOS/UnitTests, 262): Library not loaded: @rpath/SenTestingKit.framework/Versions/A/SenTestingKit
  Referenced from: .../UnitTests.octest/Contents/MacOS/UnitTests
  Reason: image not found
DevToolsBundleInjection: Error loading bundle 'UnitTests.octest'


I copied the SenTestingKit.framework into my build directory ($BUILT_PRODUCTS_DIR) but then I get a SIGABRT from GDB.

I have a really simple project that I could put out on the web (or attach, its 48KB) if it would help.

Any help would be greatly appreciated.

Thanks,

-bd-

 _______________________________________________
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: unit testing...
      • From: Chris Hanson <email@hidden>
    • Re: unit testing...
      • From: Bill Dudney <email@hidden>
  • Prev by Date: Re: How to remove depracated custom Class in nib?
  • Next by Date: Re: unit testing...
  • Previous by thread: Re: NSValue/initWithBytes
  • Next by thread: Re: unit testing...
  • Index(es):
    • Date
    • Thread