dmcg
11/04/2018, 11:43 PM@TestFactory fun `copes with no fixture if context has no operations`() = junitTests<Pair<Int, String>> {
context("supplies the fixture") {
fixture {
42 to "the answer"
}
test("test") {
assertEquals(42, this.first)
}
}
}
pass, but it means changing the signature of fun fixture(factory: ParentF.() -> F)
to fun fixture(factory: () -> F)
and reintroducing fun replaceFixture(factory: ParentF.() -> F)
Interestingly that change doesn't update any of the example tests that make up the readme, but it does change the API.