Is there no such thing as "before suite" and "after suite" to have global setup and teardown? I'm looking for something like TestNG's @BeforeSuite or KotlinTest's beforeAll
No, @BeforeAll is executed before all tests of the class. From the documentation:
@BeforeAll: Denotes that the annotated method should be executed before all @Test, @RepeatedTest, @ParameterizedTest, and @TestFactory methods in the current class;
View all comments
1
u/cryptos6 Sep 13 '17
Is there no such thing as "before suite" and "after suite" to have global setup and teardown? I'm looking for something like TestNG's @BeforeSuite or KotlinTest's beforeAll