Skip to content

Instantly share code, notes, and snippets.

View kevn's full-sized avatar

Kevin E. Hunt kevn

View GitHub Profile
@kevn
kevn / run_tests
Created July 20, 2011 17:19
Run all tests matching wildcard args
#!/usr/bin/env ruby
require 'rubygems'
# Usage: run_tests user group network
pwd = Dir.pwd
finder_args = ARGV.map{|s| %Q(-name "*#{s}*_test.rb") }.join(' -or ')
test_paths = `find test -type d -maxdepth 1 -mindepth 1`.split("\n")