Commit 69848478 by Calen Pennington

Add reports for library tests

parent 04262027
......@@ -74,13 +74,13 @@ end
Dir["common/lib/*"].each do |lib|
task_name = "test_#{lib}"
report_dir = File.join(REPORT_DIR, task_name)
report_dir = File.join(REPORT_DIR, task_name.gsub('/', '_'))
directory report_dir
desc "Run tests for common lib #{lib}"
task task_name do
task task_name => report_dir do
ENV['NOSE_XUNIT_FILE'] = File.join(report_dir, "nosetests.xml")
sh("nosetests #{lib}")
sh("nosetests #{lib} --cover-erase --with-xunit --with-xcoverage --cover-html --cover-inclusive --cover-package #{File.basename(lib)}")
end
task :test => task_name
end
......
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