Sha256: 0e58bff115c9da48f97f5549a00fd041a584badefab4733446321f4b262a5bb0
Contents?: true
Size: 815 Bytes
Versions: 4
Compression:
Stored size: 815 Bytes
Contents
module DeepTest module Test class WorkResult < ::Test::Unit::TestResult include CentralCommand::Result attr_reader :identifier attr_accessor :output def initialize(identifier) super() @identifier = identifier end def add_to(result) @failures.each {|e| result.add_failure(e)} @errors.each do |e| e.resolve_marshallable_exception result.add_error(e) end assertion_count.times {result.add_assertion} run_count.times {result.add_run} end def add_error(error) error.make_exception_marshallable super(error) end def failed_due_to_deadlock? @errors.any? && DeepTest::DeadlockDetector.due_to_deadlock?(@errors.last) end end end end
Version data entries
4 entries across 4 versions & 2 rubygems