Distractic
11/02/2023, 6:38 PM@BeforeTest
(there is no @BeforeAll
) but this function cannot be suspend and runBlocking
doesn't exists in module commonTest
.
I tried to use runTest
with @BeforeTest
, but that doesn't work in JS, the test is executed before the end of the Before
So, do you advise me to create my tests only in JVM or have you a solution to resolve that ?mkrussel
11/02/2023, 6:42 PMBeforeTest
.
You could also create a private runTest
function that calls the normal runTest function and then calls your setup code and finally runs the test block.Distractic
11/02/2023, 6:46 PMmkrussel
11/02/2023, 6:48 PMrunTest
with one that calls it, so that the tests don't look different than normal.Casey Brooks
11/02/2023, 6:48 PMDistractic
11/02/2023, 6:49 PM