0.01
No commit activity in last 3 years
No release in over 3 years
Bolt-on gem allowing for parallel execution of examples using rspec's framework
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 2.14.0
 Project Readme

Run rspec tests in Parallel.

This gem will add some extra methods to rspec allowing for execution of examples in parallel by passing in an additional option of --parallel-test followed by the number of parallel threads to use. The main concept and differentiator from other gems that allow for parallel execution of rspec tests (such as parallel_tests and prspec) is that this gem ensures that all suite, context and all before and after blocks are run only once while the before and after each blocks are run for each example. Additionally, all output formatters will report to a single output file instead of multiple files so there will be no need for consolidating results at the end of testing

Supported RSpec Versions

Build Gem

gem build rspec-parallel.gemspec

Install

gem install rspec-parallel-[version].gem

or get from rubygems.org

gem install rspec-parallel

Run

rspec --parallel-test 4          # run from the default 'spec' directory using 4 threads

Examples

moved to wiki at Examples

Known Issues

  • this gem must overwrite the rspec-core executable in order to allow for processing of the additional arguments. this can cause issues if using with the bundler gem as it may not be able to handle the overwrite and the arguments will then not be recognised

===================

Authors

inspired by rspec-core pull request 1527
Jason Holt Smith
bicarbon8@gmail.com