lib/turn/reporters/dot_reporter.rb in turn-0.8.2 vs lib/turn/reporters/dot_reporter.rb in turn-0.8.3
- old
+ new
@@ -53,10 +53,14 @@
unless list.empty? # or verbose?
#report << "\n\n-- Failures and Errors --\n\n"
list.uniq.each do |testunit|
message = testunit.fail? ? ' ' + FAIL : ERROR
message = message + ' ' + testunit.message.tabto(0)
- message << "\n" + (filter_backtrace(testunit.backtrace).first || '')
+ backtrace = filter_backtrace(testunit.backtrace)
+ message << "\n" + (backtrace.shift || '')
+ if @trace
+ message << "\n" + backtrace.join("\n")
+ end
report << "\n" << message << "\n"
end
report << "\n"
end