Skip to content

Commit

Permalink
Added parallel_tests example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
e2 committed Jun 15, 2015
1 parent 9521385 commit 1e71c21
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,25 @@ guard :rspec, cmd: 'rspec -f html -o ./tmp/spec_results.html', launchy: './tmp/s
end
```

### Using parallel_tests

parallel_tests has a `-o` option for passing RSpec options, and here's a trick to make it work with Guard::RSpec:

```ruby
rspec_options = {
cmd: "bundle exec rspec",
run_all: {
cmd: "bundle exec parallel_rspec -o '",
cmd_additional_args: "'"
}
}
guard :rspec, rspec_options do
# (...)
```

(Notice where the `'` characters are placed)


## Development

* Documentation hosted at [RubyDoc](http://rubydoc.info/github/guard/guard-rspec/master/frames).
Expand Down

0 comments on commit 1e71c21

Please sign in to comment.