Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Runs multiple Rails tests concurrently
branch: master

Merge pull request #2 from camilo/master

Just bumping redis
latest commit 3e81d627c8
Adrian Irving-Beer authored
Failed to load latest commit information.
bin Add total suite runtime to RP runner.
lib Ruby 2.0.0-p0 compatibility
.gitignore Initial version.
Gemfile Initial version.
README.markdown Update README.
Rakefile Initial version.
rails_parallel.gemspec Bump redis



rails_parallel makes your Rails tests scale with the number of CPU cores available.

It also speeds up the testing process in general, by making heavy use of forking to only have to load the Rails environment once.


To load rails_parallel, require "rails_parallel/rake" early in your Rakefile. One possibility is to load it conditionally based on an environment variable:

require 'rails_parallel/rake' if ENV['PARALLEL']

You'll want to add a lib/tasks/rails_parallel.rake with at least the following:

# RailsParallel handles the DB schema.
Rake::Task['test:prepare'].clear_prerequisites if Object.const_get(:RailsParallel)

namespace :parallel do
  # Run this task if you have non-test tasks to run first and you want the
  # RailsParallel worker to start loading your environment earlier.
  task :launch do

  namespace :db do
# RailsParallel runs this if it needs to reload the DB.
    task :setup => ['db:drop', 'db:create', 'db:schema:load']

    # RailsParallel normally doesn't mess with your current DB,
# only the 'test' env DB.  Run this to load it if required.
    task :load => :environment do

This gem was designed as an internal project and currently makes certain assumptions about your project setup, such as the use of MySQL and a separate versioned schema (rather than db/schema.rb). These will become more generic in future versions.

Something went wrong with that request. Please try again.