From 8d4c2af9f2dcf8e4a2a600cfe239709f1fdd25ee Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 27 Jun 2013 13:34:58 -0400 Subject: [PATCH] Teach rake test_$lib to understand specific test names --- rakelib/tests.rake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rakelib/tests.rake b/rakelib/tests.rake index 0ca7c5c1e9..48ad3ad1d5 100644 --- a/rakelib/tests.rake +++ b/rakelib/tests.rake @@ -99,9 +99,10 @@ Dir["common/lib/*"].select{|lib| File.directory?(lib)}.each do |lib| report_dir = report_dir_path(lib) desc "Run tests for common lib #{lib}" - task "test_#{lib}" => [report_dir, :clean_reports_dir] do + task "test_#{lib}", [:test_id] => [report_dir, :clean_reports_dir] do |t, args| + args.with_defaults(:test_id => lib) ENV['NOSE_XUNIT_FILE'] = File.join(report_dir, "nosetests.xml") - cmd = "nosetests #{lib}" + cmd = "nosetests #{args.test_id}" test_sh(run_under_coverage(cmd, lib)) end TEST_TASK_DIRS << lib