I am using KIF to test our iOS app. I am trying to make some tests that will go before and after my whole test sweet. I made a SenTestSuite category and overrode -setUp and -tearDown:
-(void)setUp
{
[tester loginCurrentVersion];
NSLog(@"setup");
}
-(void)tearDown
{
[tester logoutFromAnywhereIfNeeded];
NSLog(@"teardown");
}
These methods do get called, but my problem is that they both get called twice. I can't access any of the SenTestSuite.m
methods. I am unsure why they are getting called twice. Why is it doing this and how can I solve this?
Thanks!!