Hi. I'm on Intellij IDEA using `kotest-runner-juni...
# kotest
c
Hi. I'm on Intellij IDEA using
kotest-runner-junit5-jvm
. When I run this spec
Copy code
class TestSpec : WordSpec({

    beforeTest {
        println("beforeTest called for '${it.name}' of type: ${it.type}")
    }

    "when container" When {
        "should container" should {
            "the tests" {
                println("testing")
            }
        }
    }

})
...I get the following output:
Copy code
beforeTest called for 'when container when' of type: Container
beforeTest called for 'should container should' of type: Container

beforeTest called for 'the tests' of type: Test
testing
I would have expected
beforeTest
to be called only once for the test and not for the containers. Is this a bug or is my expectation wrong? :)