grosser/parallel_tests — pull request #133 by akuzko (2012-07-24 12:58:34+00:00)
Title: 4852 Add ability to isolate tests via pattern into separate process

This branch adds `-i [PATTERN]` (`--isolate [PATTERN]`) option to `parallel_test` command that allows to specify files that are to be processed in separate process (sort of manually controlled tests group)

In rake task, double pipe-line (`||`) char is used to separate 'single_process' pattern from 'isolate_process' pattern (`rake parallel:spec[foo||bar]`). The only reason for it is backward-compatibility (so to keep number of task arguments the same)

As usually happens, good ideas came up after initializing pull request: it might be better to use `-i` as a flag, instead of option: if it is present, pattern specified by `-s` option isolates matched tests, if not - uses default behavior.

NOTE: `-s` option allows to specify pattern for tests that should be executed in single process, but it does not guaranty they will be the only tests in the process