NIHVIVO-76 output_summary_formatter should list the names of failing tests to the console, so they can be seen in the build log. output_manager should return an error code on failure status, so it counts as a broken build.

This commit is contained in:
jeb228 2010-03-17 14:03:15 +00:00
parent f442a48d8b
commit ee44d76e9b
2 changed files with 10 additions and 1 deletions

View file

@ -211,6 +211,11 @@ class OutputManager
end
log("INFO ", "Summary complete")
if @osp.overall_status == Status::BAD
log("ERROR", "Tests failed.")
raise("Tests failed.")
end
end
end
@ -235,5 +240,5 @@ if File.expand_path($0) == File.expand_path(__FILE__)
properties = PropertyFileReader.read(ARGV[0])
om = OutputManager.new(properties)
om.summarize()
success = om.summarize()
end