Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.3 (2.0-beta-1 plugin), 1.4 (2.0 plugin), 1.5 (2.1 plugin), 1.5.1 (2.1.1 plugin), 1.5.2 (2.1.2 plugin), 1.5.3 (2.1.3 plugin), 2.0 Report Plugin, 2.0 (2.2 plugin), 2.3, 2.3.1, 2.4, 2.4.1, 2.4.2, 2.4.3
-
None
-
Windows XP, Java 6 update 14, JUnit 4.6
Description
Perhaps this is a misunderstanding, in which case I'd ask for a clarification in the documentation.
If I specify a <forkMode> of "always" or "pertest" (which I understand is the same thing), Surefire will fork for each test class, but not for each @Test within the test class.
The documentation led me to believe that surefire would fork once for each method annotated as @Test.
(Background: I'm running OpenEJB and H2, and need to ensure that the in-memory H2 database I have set up is zapped in between each test run so that, among other things, the automated DDL generation re-runs for each test.)