Write XCTests in BDD style 🤷🏻♂️
This release refines the public API.
expect
function part of an extension on XCTestswift-tools-version:5.7
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.
Thanks to @devandanger for adding Xcode 12 support! That's also the only change in this release to mention in the log.
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()
}
}