This "Kit" adds many feature to speed up iOS app testing. It allows to write Unit tests for testing view controllers "quicker than UI Tests".
func testWaitForTapableTextAndTapIt_shouldHaveTap() {
// Given
let solo = STKSolo()
let viewController = ViewController()
solo.showViewControllerInCleanWindow(viewController)
// When
let waitForText = solo.waitFor(tappableText:"Hello button", andTapIt:true)
// Expect
XCTAssertTrue(waitForText)
XCTAssertTrue(viewController.tapped)
}
see more in STKSoloTests.swift
Add the following libraries to your test target :
OHHTTPStubs
SwiftiumTestingKit
KIF
- Add CONTRIBUTING & CODE_OF_CONDUCT files
- Add URLQueryItems to PilotableServer
- Replace KIF with something like this : https://github.com/cashapp/AccessibilitySnapshot/blob/master/AccessibilitySnapshot/Classes/AccessibilityHierarchyParser.swift
We follow keepachangelog.com recommandations for our CHANGELOG