Sebastian Schuberth
11/28/2021, 10:06 AMbeforeTest()
in a WordSpec
also gets called for the outer WordSpecShouldContainerScope
. What can I use to just have something called for the contained actual tests, i.e. the WordSpecTerminalScope
?Sebastian Schuberth
11/28/2021, 2:58 PMbeforeEach()
is the way to go...sam
11/28/2021, 3:49 PMsam
11/28/2021, 3:49 PMSebastian Schuberth
11/28/2021, 3:51 PMSebastian Schuberth
11/28/2021, 3:52 PMbeforeEach()
sounds to me as if it would be called more often than beforeTest()
, whereas the opposite is the case.sam
11/28/2021, 3:52 PMsam
11/28/2021, 3:52 PMsam
11/28/2021, 3:53 PMSebastian Schuberth
11/28/2021, 3:54 PMbeforeTest()
on leaves only would be the more expected behavior.sam
11/28/2021, 3:54 PMsam
11/28/2021, 3:55 PMsam
11/28/2021, 3:55 PMbeforeAll
yourself, and forget beforeTest
exists if you want.Sebastian Schuberth
11/28/2021, 3:56 PMSebastian Schuberth
11/28/2021, 3:57 PMbeforeTest()
?sam
11/28/2021, 4:00 PM