Commit babbc37a by Calen Pennington

Merge pull request #287 from edx/cale/teach-rake-test_$lib-to-understand-specific-test-names

Teach rake test_$lib to understand specific test names
parents 1a7b8331 8d4c2af9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment