Swiftpack.co -  q231950/rorschach as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Write Xcode UI Tests BDD style 🤷🏻‍♂️
.package(url: "https://github.com/q231950/rorschach.git", from: "v1.0.1")
The Rorschach Logo

This package allows you to write tests in a BDD style. It's Swift's result builders that allow for a lightweight DSL that makes your tests way more readable.

func test_simple_example() {

    let context = UniverseContext()

    expect {
        Given("I have a universe without any stars") {
            context.numberOfStars = 5
        When("I add a couple of stars") {
            context.numberOfStars = 1_000_000_000_023
        Then("I can see the stars I have added ✨") {
            XCTAssertEqual(context.numberOfStars, 1_000_000_000_023)

Corresponding test result in Xcode's Report Navigator


Stars: 27
Last commit: 3 days 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.

Release Notes

Xcode 12 Compatibility Release
24 weeks ago

Thanks to @devandanger for adding Xcode 12 support! That's also the only change in this release to mention in the log.

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