Hello, it looks like the ordering of kotest lifecy...
# kotest
j
Hello, it looks like the ordering of kotest lifecycle hooks changed for
AnnotationSpec
between Kotest
5.6.2
-->
5.9.1
Copy code
class EschnerListener: TestListener {
    override suspend fun beforeSpec(spec: Spec) { println("## beforeSpec") }

    override suspend fun beforeAny(testCase: TestCase) { println("## beforeAny") }
}

class EschnerTestAnnotationSpec : AnnotationSpec() {
    val specListener = listener(EschnerListener())

    @BeforeEach
    fun beforeEach() { println("## beforeEach") }

    @Test
    fun simpleTest() { true.shouldBeTrue() }
}
Copy code
--> Kotest 5.6.2
  ## beforeSpec
  ## beforeAny
  ## beforeEach

--> Kotest 5.9.1
  ## beforeSpec
  ## beforeEach
  ## beforeAny
Is someone able to point me to the change that caused this? ** Not a contribution
s
Can you make an issue for this on the kotest tracker. We should add tests to have this locked down.
1
j