6

I am trying to make parallel tests using rspec and rails 6. According to their documentation, it is just required to add PARALLEL_WORKERS=15 where 15 is the number of workers. However, this works for Testcases and not for rspecs.

Have anybody found a solution to make it works with rspec?

https://edgeguides.rubyonrails.org/testing.html#parallel-testing

  • 2
    Not 100% sure, but it looks like SimpleTest is the only one that supports this official way of parallelizing specs (as this is default testing framework for rails). For RSpec consider using a gem like: https://github.com/grosser/parallel_tests – Greg Jul 29 '21 at 11:01

1 Answers1

0

RSpec does not support Rails 6 built-in parallel testing.

https://oozou.com/blog/running-specs-in-parallel-before-rails-6-84

#rspec #rubyonrails #rails6