Closed loicmathieu closed 4 years ago
Skip BeforeEach and AfterEach on the origin VM if the test method will be forked as they will be executed in the forked VM.
A simple test case is provided to demonstate the fix, without this fix the test case fail as the lock file will be created two times.
I also add RuntimeException for not supported test construction: dynamic tests and test templates.
RuntimeException
I rebased on master to merge the changes from dynamic tests support.
Thank you @loicmathieu
Skip BeforeEach and AfterEach on the origin VM if the test method will be forked as they will be executed in the forked VM.
A simple test case is provided to demonstate the fix, without this fix the test case fail as the lock file will be created two times.