Hey, should `@BeforeAll` annotated method from sup...
# announcements
a
Hey, should
@BeforeAll
annotated method from super class be executed before tests from child class?
Copy code
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
open class TestBase {

    var status: Boolean = false

    @BeforeAll
    open fun setStatus() {
        status = true
    }
}

class MyAppTest : TestBase() {

    @test
    fun testStatus() {
        assertTrue(status) //fails
    }

}
It looks like it's never executed. A breakpoint doesn't stop there
s
What framework is that
a
JUnit 5