cataphract / rspec-parallel

a thin wrapper gem that enables parallel execution of rspec tests by overriding some default behaviours

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

n/a

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

Authors

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

About

a thin wrapper gem that enables parallel execution of rspec tests by overriding some default behaviours


Languages

Language:Ruby 100.0%