Solanum2
Starter project for "iOS UI Testing with KIF" tutorial, updated for Xcode 6.4 and iOS 8.4.1.
- Started from a clean single-view app template
- Copied over the main app files
- Manually transfered
import
statments that had been in the old precompiled header file - Supplied missing app icons to address warnings
- Added KIF via Cocoapods
To complete the tutorial, I needed to...
- Open "Solanum2.xcworkspace" instead of "Solanum2.xcproject" (for Cocoapods)
- Add test files to group "Solanum2Tests" instead of "UI Tests"
- Add
#import <KIF/KIF.h>
to the top of "UITests.m" - Replace
STAssert
withXCTAssert
everywhere in the tutorial (but changeSTAssertEqualsWithAccuracy
toXCTAssertEqualWithAccuracy
) - Use
tapRowAtIndexPath:inTableViewWithAccessibilityIdentifier:
instead oftapRowInTableViewWithAccessibilityLabel:atIndexPath:
(deprecated) to tap a specific table row. This required settingsetAccessibilityIdentifier:
in addition tosetAccessibilityLabel:
in "PresetsViewController.m".
I also noticed that no automation played when only a beforeAll
method was present.