Readme.md in parallel_tests-2.5.0 vs Readme.md in parallel_tests-2.6.0
- old
+ new
@@ -9,14 +9,14 @@
Setup for Rails
===============
[RailsCasts episode #413 Fast Tests](http://railscasts.com/episodes/413-fast-tests)
### Install
+`Gemfile`:
```ruby
-# Gemfile
-gem "parallel_tests", group: :development
+gem 'parallel_tests', group: [:development, :test]
```
### Add to `config/database.yml`
ParallelTests uses 1 database per test-process.
@@ -78,11 +78,11 @@
Running things once
===================
```Ruby
-# effected by race-condition: first process may boot slower the second
+# affected by race-condition: first process may boot slower the second
# either sleep a bit or use a lock for example File.lock
ParallelTests.first_process? ? do_something : sleep(1)
at_exit do
if ParallelTests.first_process?
@@ -183,10 +183,10 @@
Options are:
<!-- copy output from bundle exec ./bin/parallel_test -h -->
-n [PROCESSES] How many processes to use, default: available CPUs
- -p, --pattern [PATTERN] run tests matching this pattern
+ -p, --pattern [PATTERN] run tests matching this regex pattern
--group-by [TYPE] group tests by:
found - order of finding files
steps - number of cucumber/spinach steps
scenarios - individual cucumber scenarios
filesize - by size of the file