apache/maven-surefire — pull request #10 by agudian (2012-11-16 22:11:22+00:00)
Title: forkMode onceperthread (SUREFIRE-751) (licence headers included)

In relation to http://jira.codehaus.org/browse/SUREFIRE-751

Adds a new forkMode option "onceperthread", that creates one reusable forked process for each thread specified with the threadCount option. The tests are handed out to the processes "on-demand", i.e. as soon as a test class was executed, a new class to execute is supplied by the parent process.
Adds a resulotion of the placeholder ${surefire.threadNumber} to the number of the executing thread (range [1..threadCount]). The resolution takes place in system properties in the argLine. E.g. -DmyDatabaseSchema=TEST_SCHEMA_${surefire.threadNumber}. Works for all forkModes (including "never", which would resolve the placeholder to "1").
Integration Tests ForkModeIT and ForkModeNGIT have been extended to cover both new features

Discussion in http://markmail.org/message/xn7bo4xxnzpvmskw