Skip to content

Repository files navigation

SwiftiumTestingKit

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".

Example :

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

Installation

Swift Package Manager

See official documentation

Setup

Add the following libraries to your test target :

  • OHHTTPStubs
  • SwiftiumTestingKit
  • KIF

To be done :

Change log

We follow keepachangelog.com recommandations for our CHANGELOG

Useful links

https://medium.com/@hacknicity/how-to-switch-your-ios-app-and-scene-delegates-for-improved-testing-9746279378c3

About

iOS View Controllers integration testing framework made easy

Resources

Stars

3 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages