DEV Community

Discussion on: Setup RSpec on a fresh Rails 7 project

Collapse
 
pas256 profile image
Peter Sankauskas

This is fantastic, thank you!

I noticed in test/test_helper.rb there is a line to help speed up testing. How did you do the equivalent of:

parallelize(workers: :number_of_processors)
Enter fullscreen mode Exit fullscreen mode
Collapse
 
adrianvalenz profile image
Adrian Valenzuela

It looks like there is a gem and a video tutorial that can assist with that: github.com/grosser/parallel_tests and railscasts.com/episodes/413-fast-t... ..

From what I understand it's not built into RSpec which you can refer to this GitHub issue for starters: github.com/rspec/rspec-rails/issue...