apache/maven-surefire — pull request #8 by agudian (2012-11-12 11:12:08+00:00)
Title: forkMode onceperthread (SUREFIRE-751)

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

Open points:
- Source-code formatting, Apache file headers missing
- Some Javadoc here and there... I'll add that soon.
- refactoring of the forkMode options to simplify the usage? See my proposals in the above mailing list thread... :)
- anything else? Let me know! :)