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
letsolo=STKSolo()letviewController=ViewController()
solo.showViewControllerInCleanWindow(viewController)
// When
letwaitForText= 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 :
OHHTTPStubsSwiftiumTestingKitKIF
- 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