parallel_tests

https://github.com/grosser/parallel_tests

Ruby

Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber

ParallelTests.number_of_running_processes

Fun fact: this includes the current process if it's run via parallel_tests

Source | Google | Stack overflow

Edit

git clone [email protected]:grosser/parallel_tests.git

cd parallel_tests

open lib/parallel_tests.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ParallelTests-number_of_running_processes-for-pr


# Commit to git

git add lib/parallel_tests.rbgit commit -m "better docs for ParallelTests.number_of_running_processes"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ParallelTests-number_of_running_processes-for-pr

hub pull-request


# Celebrate!