devandanger / rorschach

Write Xcode UI Tests BDD style πŸ€·πŸ»β€β™‚οΈ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Rorschach Logo

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

func test_iCanSeeTheStars() {
    var context = UniverseContext()

    expect(in: &context) {
        Given {
            ILearnABitMore()
            IBuildARocket()
        }
        When {
            ILaunchARocket()
        }
        Then {
            ICanSeeTheStars()
        }
    }
}

Example Output in the Report navigator

About

Write Xcode UI Tests BDD style πŸ€·πŸ»β€β™‚οΈ


Languages

Language:Swift 100.0%