Top "Ocunit" questions

OCUnit is a unit testing framework for the Objective-C language and included with Apple's Xcode IDE since Xcode 2.1.

OCUnit & NSBundle

I created OCUnit test in concordance with "iPhone Development Guide". Here is the class I want to test: // myClass.h #…

unit-testing resources ocunit nsbundle
What is the proper way to detect if unit tests are running at runtime in Xcode?

When I'm running unit tests, I'd like to skip some code (e.g. I don't want [[UIApplication sharedApplication] openURL:..] to …

objective-c ocunit xctest
OCUnit tests to existing iOS project. "ld: file not found"

I've been following this blog post: Adding unit tests to existing project. I'm getting this error however: ld: file not …

objective-c ios xcode4 ocunit sentestingkit
What's the quickest way to compare a NSUInteger with an int (e.g. 5) in objective-c?

What's the quickest way to compare a NSUInteger with an int (e.g. 5) in objective-c? Background - I'm noting that …

objective-c xcode xcode4 ocunit
Is it possible to unit test a static library project using XCode's SenTestingKit?

I've created an iOS unit test target for doing logic tests following the steps provided in Apple's documentation. However my …

testing ios static-libraries ocunit
Run logic tests in Xcode 4 without launching the simulator

I want to run tests in Xcode 4 using OCUnit without launching the simulator. Please, don't try and convince me I …

objective-c xcode tdd ios-simulator ocunit
Xcode 4 unit testing linker error

NOTE: "Use GHUnit" is not an acceptable answer to this question. I know most think GHUnit is better than the …

ios xcode4 linker ocunit
Apple Mach-O Linker Error using Core Data classes in OCUnit

OK, here's my code in my test class: - (NSManagedObjectContext*)managedObjectContextWithConcurrencyType:(NSManagedObjectContextConcurrencyType)concurrencyType { NSManagedObjectModel *mom = [NSManagedObjectModel mergedModelFromBundles:nil]; STAssertNotNil(mom, @"…

ios xcode core-data ocunit
SenTestingKit in Xcode 4: Asynchronous testing?

I have been searching for a way to use SenTestingKit to do some integration testing between my client-side code and …

objective-c unit-testing ocunit
Is it possible to test IBAction?

It is kinda easy to unit test IBOutlets, but how about IBActions? I was trying to find a way how …

ios xctest ocunit