Skip to content

Instantly share code, notes, and snippets.

@MacksMind
Created March 26, 2013 10:03
Show Gist options
  • Save MacksMind/5244289 to your computer and use it in GitHub Desktop.
Save MacksMind/5244289 to your computer and use it in GitHub Desktop.
Shell script to run multiple test files. This version runs 5 at a time. Change the `-tn 5` to `-t` to run everything at once.
find test/* -type d -maxdepth 2 | xargs -J {} find {} -name '*_test.rb' | xargs -tn 5 bundle exec ruby -I.:test -e "ARGV.each{|f| require f}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment