zuba
zuba

Reputation: 1508

How to run tagged rspec tests with parallel_tests?

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

Answers (1)

Vitaliy Grigoruk
Vitaliy Grigoruk

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

Related Questions