Sean Danzeiser
Sean Danzeiser

Reputation: 9243

Trouble running KIF iOS Automation Tests

Just finished integrated KIF into my project -- but I am having trouble getting the tests to run...

When I run my unit tests, the sample XCTest example runs fine, but the separate kif tests never execute. Further, they show up in the test navigator but when I specifically tell them to execute, they simple do not.

My KIF tests look like this:

- (void)beforeEach
{
    NSLog(@"starting");
}

- (void)afterEach
{
    NSLog(@"ending");
}

- (void)testSuccessfulLogin
{
    [tester enterText:@"[email protected]" intoViewWithAccessibilityLabel:@"Login User Name"];
    [tester enterText:@"thisismypassword" intoViewWithAccessibilityLabel:@"Login Password"];
    [tester tapViewWithAccessibilityLabel:@"Log In"];
    [tester waitForTappableViewWithAccessibilityLabel:@"Welcome"];
}

and subclass KIFTestCase

I'd love to provide more info but I'm not sure what else to say ... does anyone have any experience running KIF tests?

Thanks!

Upvotes: 0

Views: 414

Answers (1)

Sean Danzeiser
Sean Danzeiser

Reputation: 9243

sorry for the late answer, but I was actually checking out the v1 cocoapod (pre XCTest). That will do it!!

When i switched over everything worked fine. Make sure to do this in your pod file:

target 'Acceptance Tests', :exclusive => true do
    pod 'KIF', '~> 3.0'

Upvotes: 0

Related Questions