How to Parallelize Your RSpec Test Suite Locally - FastRuby.io | Rails Upgrade Service

19-Jun-2026 4
Waiting over an hour for a test suite to finish is a productivity killer. On a recent project, that was our reality. Running the full local RSpec suite took almost 2 hours, making it difficult to get quick feedback and confidently iterate on changes. While there are many ways to optimize test performance opens a new window including fixtures, request stubbing, faster tooling, and more, most of these options require significant effort to implement. Instead, we explored a simpler approach: bringing parallel test execution to local development. The result was a much faster feedback loop (down to 5 minutes) and a significantly better developer experience. Although our primary goal was to improve the local developer experience, this setup can be used in both local and CI environments. In this post, we’ll walk through how to set up parallel testing locally in Rails, from configuring worker-specific databases to preparing your application for concurrent test execution.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle