Sam
03/10/2022, 10:43 AMlateinit var fixture: SomeFixture
beforeEach {
fixture = createFixture()
}
In Spek, there's a shorthand for that using a property delegate:
val fixture by memoized { createFixture() }
Does kotest have anything similar? I think I could create one easily myself as an extension function; just want to make sure it doesn't exist already.christophsturm
03/10/2022, 11:19 AMval fixture = createFixture()
https://kotest.io/docs/framework/isolation-mode.htmlSam
03/10/2022, 11:23 AM