From 6861a36179d5498600bc994aba8110fbd3122e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=88king?= Date: Sat, 8 Dec 2012 08:08:54 -0700 Subject: Deduplicate bacon invocation Surprising how much this thrashed so far. --- Rakefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 0fbf3a39..dd24f1df 100644 --- a/Rakefile +++ b/Rakefile @@ -48,7 +48,12 @@ task :default => [:test] desc "Run tests" task :test do check_dependencies unless ENV['SKIP_DEP_CHECK'] - all_specs = Dir['spec/**/*_spec.rb'] + all_specs = + if explicit_list = ENV['run'] + explicit_list.split(',') + else + Dir['spec/**/*_spec.rb'] + end all_specs.shuffle! if all_specs.respond_to? :shuffle! system "bacon -Ispec -rubygems -q #{all_specs.join ' '}" end -- cgit v1.2.1