tmm1/test-queue — pull request #8 by yasuoza (2014-02-08 15:41:40+00:00)
Title: Support minitest >= 4.7

Add minitest 5 support.

**To test**

```
$ bin/minitest-queue ./test/sample_test.rb
$ bin/minitest-queue ./test/sample5_test.rb
```

**Caveats**

With minitest 4.7, worker works mostly same numbers of tests:

```
==> Summary (8 workers in 1.0207s)

[ 8] 4 tests, 4 assertions, 0 failures, 0 errors, 0 skips 4 suites in 0.7639s (pid 11762 exit 0)
[ 2] 4 tests, 4 assertions, 1 failures, 0 errors, 0 skips 4 suites in 0.7784s (pid 11754 exit 1)
[ 5] 4 tests, 4 assertions, 0 failures, 0 errors, 0 skips 4 suites in 1.0159s (pid 11757 exit 0)
[ 7] 4 tests, 4 assertions, 0 failures, 0 errors, 0 skips 4 suites in 1.0157s (pid 11761 exit 0)
[ 6] 4 tests, 4 assertions, 0 failures, 0 errors, 0 skips 4 suites in 1.0164s (pid 11758 exit 0)
[ 4] 4 tests, 4 assertions, 0 failures, 0 errors, 0 skips 4 suites in 1.0174s (pid 11756 exit 0)
[ 3] 4 tests, 4 assertions, 0 failures, 0 errors, 0 skips 4 suites in 1.0180s (pid 11755 exit 0)
[ 1] 4 tests, 4 assertions, 0 failures, 0 errors, 0 skips 4 suites in 1.0196s (pid 11753 exit 0)
```

But, with minitest >= 5.0, worker works differently:

```
==> Summary (8 workers in 1.2791s)

[ 8] 1 runs, 1 assertions, 0 failures, 0 errors, 0 skips 1 suites in 0.2660s (pid 55248 exit 0)
[ 2] 2 runs, 2 assertions, 0 failures, 0 errors, 0 skips 3 suites in 0.5198s (pid 55242 exit 0)
[ 7] 4 runs, 4 assertions, 1 failures, 0 errors, 0 skips 4 suites in 0.7816s (pid 55247 exit 1)
[ 6] 4 runs, 4 assertions, 0 failures, 0 errors, 0 skips 4 suites in 1.0220s (pid 55246 exit 0)
[ 1] 5 runs, 5 assertions, 0 failures, 0 errors, 0 skips 5 suites in 1.2749s (pid 55241 exit 0)
[ 5] 5 runs, 5 assertions, 0 failures, 0 errors, 0 skips 6 suites in 1.2756s (pid 55245 exit 0)
[ 4] 6 runs, 6 assertions, 0 failures, 0 errors, 0 skips 6 suites in 1.2764s (pid 55244 exit 0)
[ 3] 5 runs, 5 assertions, 0 failures, 0 errors, 0 skips 6 suites in 1.2771s (pid 55243 exit 0)
```

I'm working to improve minitest 5 concurrency. (It might be related to minitest's implementation. I don't know well)

@tmm1 Even though this PR have caveats, could you review this?

Thank you.