parallel_tests

https://github.com/grosser/parallel_tests

Ruby

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

ParallelTests::Tasks.suppress_output

this is a crazy-complex solution for a very simple problem:
removing certain lines from the output without changing the exit-status
normally I'd not do this, but it has been lots of fun and a great learning experience :)

- sed does not support | without -r
- grep changes 0 exitstatus to 1 if nothing matches
- sed changes 1 exitstatus to 0
- pipefail makes pipe fail with exitstatus of first failed command
- pipefail is not supported in (zsh)
- defining a new rake task like silence_schema would force users to load parallel_tests in test env
- do not use ' since run_in_parallel uses them to quote stuff
- simple system "set -o pipefail" returns nil even though set -o pipefail exists with 0

Source | Google | Stack overflow

Edit

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

cd parallel_tests

open lib/parallel_tests/tasks.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ParallelTests--Tasks-suppress_output-for-pr


# Commit to git

git add lib/parallel_tests/tasks.rbgit commit -m "better docs for ParallelTests::Tasks.suppress_output"


# 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--Tasks-suppress_output-for-pr

hub pull-request


# Celebrate!