Adam S
11/24/2022, 8:35 PMafterEach{}
hook - should it?
I thought that withData()
would register a test case for each data element, and so afterEach{}
would be triggered by the end of each withData(...) {}
blockAdam S
11/24/2022, 8:36 PMEmil Kantis
11/24/2022, 8:37 PMAdam S
11/24/2022, 8:37 PMAdam S
11/24/2022, 8:38 PMEmil Kantis
11/24/2022, 8:41 PMAdam S
11/24/2022, 8:42 PMEmil Kantis
11/24/2022, 8:43 PMAdam S
11/24/2022, 8:45 PMAFTER EACH
matches. So I don’t think the afterEach {}
is triggered, which is strangeEmil Kantis
11/24/2022, 8:45 PM@DirtiesContext(ClassMode.AFTER_EACH_TEST_METHOD)
Emil Kantis
11/24/2022, 8:46 PMAdam S
11/24/2022, 8:47 PM@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
works, but it makes the tests too slowAdam S
11/24/2022, 8:47 PMAFTER EACH
in the logsEmil Kantis
11/24/2022, 8:47 PMCustomRootSpec
is interferingEmil Kantis
11/24/2022, 8:54 PMAdam S
11/24/2022, 8:54 PMsam
11/24/2022, 8:58 PMDavio
11/24/2022, 8:59 PMDavio
11/24/2022, 9:00 PMEmil Kantis
11/24/2022, 9:00 PMDavio
11/24/2022, 9:01 PMAdam S
11/24/2022, 9:02 PMEmil Kantis
11/24/2022, 9:03 PMafterTest
, if that works for you.Emil Kantis
11/24/2022, 9:03 PMAdam S
11/24/2022, 9:10 PMafterAny {}
seems to workAdam S
11/24/2022, 9:10 PMEmil Kantis
11/24/2022, 9:17 PM