Q231950 Rorschach Versions Save

Write XCTests in BDD style 🤷🏻‍♂️

v2.0.0

1 year ago

This release refines the public API.

  • makes the expect function part of an extension on XCTest
  • adds documentation
  • refactors production and test code
  • compiles on Xcode 14 Beta 1 and Beta 2
  • compiles with swift-tools-version:5.7

v1.1.0

2 years ago

Subclassing of Steps and Assertions is no longer necessary and the obligatory Context has been removed.

Find some examples of the usage in pr https://github.com/q231950/rorschach/pull/3.

v1.0.1

3 years ago

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

v1.0.0

4 years ago

Rorschach is a Swift Package for writing Xcode UI Tests in a BDD style. This first version allows to expect given/when/then acceptance criteria in a context defined by the test.

let context = UniverseContext()

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