Some thinking out loud about the “pure Minutest” m...
# minutest
n
Some thinking out loud about the “pure Minutest” model supported by the TestEngine. Currently test contexts are defined as top-level `val`s, like:
Copy code
val `my tests` = context<MutableList<Int>> {
    fixture { mutableListOf<Int>() }
    test("is created empty") {
        assertTrue(isEmpty)
    }

    // ... and so on
}
But would functions be a better choice?
Copy code
fun `my tests`() = context<MutableList<Int>> {
    fixture { mutableListOf<Int>() }
    test("is created empty") {
        assertTrue(isEmpty)
    }

    // ... and so on
}
Functions add a tiny bit of extra syntax noise, but it’s not the end of the world… Or the engine could support both.