Fork mode of "pertest" or "always" does not fork per test or always
-------------------------------------------------------------------

                 Key: SUREFIRE-568
                 URL: http://jira.codehaus.org/browse/SUREFIRE-568
             Project: Maven Surefire
          Issue Type: Bug
          Components: Junit 4.x support
    Affects Versions: 2.4.3, 2.4.2, 2.4.1, 2.4, 2.3.1, 2.3, 2.0 (2.2 plugin), 
2.0 Report Plugin, 1.5.3 (2.1.3 plugin), 1.5.2 (2.1.2 plugin), 1.5.1 (2.1.1 
plugin), 1.5 (2.1 plugin), 1.4 (2.0 plugin), 1.3 (2.0-beta-1 plugin)
         Environment: Windows XP, Java 6 update 14, JUnit 4.6
            Reporter: Laird Nelson


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.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to