From 1e71c21cd5a82c5d899b5b473eb0f2cfd28efff0 Mon Sep 17 00:00:00 2001 From: Cezary Baginski Date: Tue, 16 Jun 2015 00:52:48 +0200 Subject: [PATCH] Added parallel_tests example to README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 2b61d6c5..f74c1f54 100644 --- a/README.md +++ b/README.md @@ -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).