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
Edit
git clone [email protected]:grosser/parallel_tests.git
cd parallel_tests
open lib/parallel_tests.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ParallelTests-number_of_running_processes-for-pr
# Commit to gitgit add lib/parallel_tests.rbgit commit -m "better docs for ParallelTests.number_of_running_processes"
# Open pull requestgem 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!