quick-perf / quickperf

QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties
https://github.com/quick-perf/doc/wiki/QuickPerf
Apache License 2.0
488 stars 65 forks source link

Skip BeforeEach/AfterEach if the test will fork #108

Closed loicmathieu closed 4 years ago

loicmathieu commented 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.

loicmathieu commented 4 years ago

I also add RuntimeException for not supported test construction: dynamic tests and test templates.

loicmathieu commented 4 years ago

I rebased on master to merge the changes from dynamic tests support.

jeanbisutti commented 4 years ago

Thank you @loicmathieu