• 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: SenTestingKit fails when using CG-Only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SenTestingKit fails when using CG-Only


  • Subject: Re: SenTestingKit fails when using CG-Only
  • From: Hans van der Meer <email@hidden>
  • Date: Sun, 30 Dec 2007 20:17:20 +0100


The code below surfaced in this group on 10 november by Chris Hanson. It was augmented a day later by Andre and claims to have solved the problem of unit testing with the GCRequired setting.


When I tried to implement this scheme it did not work for me. I suspect I am not doing things as should be with the following:
- in the project for a framework made a target with the unit testing code;
- made this target dependent on the framework target;
- the above setup is working except for GCRequired;
- Took the amended code (as per 11-11) into a .h/.m pair generated from the new file wizard opting for Objective C Test Class;
- added the files to the target.
This setup appears to be at fault, because the NSLog message does not appear and otest crashes. Besides, a get a compilation warning "SenTestProbe may not respond to runTests".
Clearly I am at the wrong track and would very much appreciate it if someone will provide me with more specific and detailed instructions on this issue.
Hans van der Meer



The code for reference (abbreviated):
#import "GCRequiredUnitTesting.h"
@implementation GCRequiredUnitTesting
int main (int argc, const char * argv[]) {
...
// Tell SenTestingKit to use our last argument as the test bundle, to
// run all the tests it can find, and that the executable is equivalent
// to the otest test rig supplied with OCUnit.
...

	NSLog(@"Your (Garbage Collected) Test Suite is %@ \n",lastArgument);

...
	//Probing
	[SenTestProbe runTests:testDefaults];
...


Hans van der Meer




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: cocoa bindings NSTableColumn to @allKeys?
  • Next by Date: Re: How does a fully transparent window receive mouse event?
  • Previous by thread: Re: Media Browser for iPhoto, iTunes, etc.
  • Next by thread: NSDrawer resizing problem - no longer resizes when parent window resized
  • Index(es):
    • Date
    • Thread