Hi :slightly_smiling_face: I just started playing ...
# kotlintest
w
Hi 🙂 I just started playing with KotlinTest, and I’d like to ask for some clarification regarding setting state for single tests. In Spek or RSpec I could use e.g.
beforeEachGroup
and
afterEachGroup
to set and reset state for couple of tests/context. In KotlinTest I’d instead simply put initialization and clean up code normally within context, right?
Copy code
class ATest : DescribeSpec({
    describe("Describe") {
        context("A context") {
            // setup
            it("test") {
                // assert
            }
            // clean up
        }
    }
})