module Test module Unit class TestResult attr_accessor :output def add_to(result) @failures.each {|e| result.add_failure(e)} @errors.each {|e| result.add_error(e)} assertion_count.times {result.add_assertion} run_count.times {result.add_run} end def failed_due_to_deadlock? @errors.any? && !@errors.last.message.to_s.match(/Deadlock found when trying to get lock/).nil? end end end end