Commit 69848478 by Calen Pennington

Add reports for library tests

parent 04262027
...@@ -74,13 +74,13 @@ end ...@@ -74,13 +74,13 @@ end
Dir["common/lib/*"].each do |lib| Dir["common/lib/*"].each do |lib|
task_name = "test_#{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 directory report_dir
desc "Run tests for common lib #{lib}" 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") 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 end
task :test => task_name task :test => task_name
end 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