Swiftpack.co - openium/SwiftiumTestingKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by openium.
openium/SwiftiumTestingKit v0.6.2
iOS View Controllers integration testing framework made easy
⭐️ 3
🕓 2 years ago
iOS
.package(url: "https://github.com/openium/SwiftiumTestingKit.git", from: "v0.6.2")

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

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

GitHub

link
Stars: 3
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Xcode 13 support
2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics