Questions tagged [sentestingkit]

SenTestingKit is Apple's install of OCUnit on Mac OS X 10.4.

It is installed as SenTestingKit.framework.

It is used by making a new target - a "Unit Test Bundle" - in an XCode project.

96 questions
1
vote
1 answer

Unit Testing Target not recognizing static csv file

I am running Xcode 4.5 and I have added a new unit testing target to an existing project. I added a csv file to the Copy Bundle Resources section of the target, but the target is not recognizing the file as part of the bundle. When I run the…
Andrew Lauer Barinov
  • 5,474
  • 9
  • 56
  • 80
1
vote
1 answer

XCode OCUnit crashes with Abort trap: 6 before any test code is run

I have the following stupidly simple test case (defined in a .mm file with correspong .h file). It uses boost to try to read in a ptree from a stringstream to simulate the text that would be in a file. -(void)setUp { printf("setup\n"); …
stokastic
  • 945
  • 2
  • 7
  • 18
1
vote
3 answers

Launch test cases by hand (SenTestCase)? Need to wait for some background tasks before testing

I make some data loading from disk in the background. My test should run after the runtime store has populated, but now tests runs paralel to my loading, which causes empty objects of course, so failed tests. Any way to run the tests after my data…
Geri Borbás
  • 13,770
  • 13
  • 97
  • 158
1
vote
1 answer

iOS Application Test static library initialization

I'm trying to write tests for an iOS app with a legacy C++ library dependency. The legacy library has initialization routines and static variables that must be run/set once per app cycle. I've created a test target that is working correctly. My test…
HatAndBeard
  • 1,326
  • 3
  • 16
  • 30
1
vote
2 answers

Unit testing a static library with RestKit

I'm attempting to follow along with the RestKit unit test guide ( https://github.com/RestKit/RestKit/wiki/Unit-Testing-with-RestKit ) except that my project is a static library instead of an app. Here is the test I've written: -…
mark
  • 1,328
  • 11
  • 27
1
vote
1 answer

Errors building tests trying to use Magical Record with Kiwi

I'm having problems getting Magical Record to play nicely with a testing target that's based on Kiwi. Kiwi's been set up as per the process on the GitHub wiki; Magical Record works fine on the other targets and I'm including the…
TimD
  • 7,366
  • 2
  • 21
  • 33
0
votes
3 answers

iPhone Unit Testing using SenTesting Framework

I have created a project and it works fine. Now I need to write some test cases. So I added and set up SenTestingKit. Then I started writing test cases by creating instances of a Class and trying to change value of some variables within that class.…
rakeshNS
  • 4,077
  • 4
  • 25
  • 40
0
votes
3 answers

Retain count exhausted after @throw

When I run this code inside a call made from SenTest's STAssertThrowsSpecificNamed: @throw [[NSException alloc] initWithName:NSInvalidArchiveOperationException reason:@"---some reason----" …
paulmelnikow
  • 16,036
  • 6
  • 56
  • 110
0
votes
1 answer

Can't Access the storyboard from SenTeskingKit

my question is that I am trying to test some stuff from SenTesking Kit. -(void)testStoryboard { storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; STAssertNotNil(storyBoard, @"Can't access the storyboard"); } I…
0
votes
1 answer

Unit testing vs UI testing for iOS

I have an iphone application. Should i do unit testing or UI tesitng or is both necessary. If UI testing is sufficient to test the models I will use Instruments. If unit testing I'm planning to use OC Unit test. I'm new to it. I went through some…
cancerian
  • 932
  • 1
  • 10
  • 18
0
votes
2 answers

SenTestingKit Not found In Xcode4

When I tried to import , I get this error: SenTestingKit/SenTestingKit.h: No such file or directory. I am using unit testing for the first. I am using xcode 4.2 with ios 5 sdk. But in my system I have two xcode version…
PgmFreek
  • 6,234
  • 3
  • 32
  • 46
0
votes
2 answers

Comparing two arrays for equivilant objects with Kiwi (Sentesting) Kit

I want to compare two arrays for equivalent objects, one a property inside my class and the other in my test method. I cannot compare directly since the objects will be allocated seperately and thus have different memory locations. To get around…
quantumpotato
  • 8,938
  • 12
  • 57
  • 132
0
votes
1 answer

Cannot find SenTestingKit when using Kiwi

Xcode 4.0.2. New project, include Tests. Drag Kiwi folder in. Cannot find SenTestCase, cannot find #import Searched in the framework add list and didn't see it there, either. What am I missing?
quantumpotato
  • 8,938
  • 12
  • 57
  • 132
0
votes
1 answer

SenTest, Objective-C, Category Weirdness

I have a SenTest class I am attempting to write which uses a Category to override a method in a controller class. I want my mock controller class to call a method in the SenTest class to determine how to behave for various tests. For example: Set a…
Genericrich
  • 4,530
  • 4
  • 33
  • 53
0
votes
1 answer

Unit test case :XCTestCase vs Sentestcase

I am writing test case for my application . Just wondering which one to choose between XctestCase and SentestCase ? Any input will be appreciated .
user3566578
  • 61
  • 1
  • 3