I've tried minutests after a while. I cannot see the names of the tests anymore in intellij...
typealias StringToIntFun = (String) -> Int
class FunctionFixtureTest : JUnit5Minutests {
// The fixture type is the generic type of the test, here Stack<String>
fun tests() = rootContext<StringToIntFun> {
fixture {
{str -> str.length * 2 }
}
test("add an item") {
assertEquals(8, this("item"))
}
test("fixture is fresh") {
assertEquals(11, fixture("pippone"))
}
}
}