Reputation: 1508
I want to execute my rspec tests in parallel
If I need all tests to perform on 6 cores I use bundle exec rake parallel:spec[6]
How can I specify a tag option for spec rake, e.g. --tag ~chat
Upvotes: 13
Views: 2718
Reputation: 619
Use SPEC_OPTS environment variable for passing options to rspec in this case.
Example:
$ SPEC_OPTS='--tag ~chat' bundle exec rake parallel:spec[6]
Upvotes: 23