OK, so I've found a way of making ``` @TestFac...
# minutest
d
OK, so I've found a way of making
Copy code
@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.
👍 1