Swiftpack.co - openium/SwiftiumTestingKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
openium/SwiftiumTestingKit
iOS View Controllers integration testing framework made easy
.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: 1
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

Swift package manager support
1 year ago

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