Sha256: d2178f2ca65bb63f0307dd0b8cc03e2b0d14076edc52948ad41b5ebc95a1008e

Contents?: true

Size: 475 Bytes

Versions: 8

Compression:

Stored size: 475 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
deep_test-1.1.2 lib/deep_test/extensions/testresult.rb
deep_test-1.0.0 lib/deep_test/extensions/testresult.rb
deep_test-1.0.1 lib/deep_test/extensions/testresult.rb
deep_test-1.0.2 lib/deep_test/extensions/testresult.rb
deep_test-1.0.3 lib/deep_test/extensions/testresult.rb
deep_test-1.0.4 lib/deep_test/extensions/testresult.rb
deep_test-1.1.0 lib/deep_test/extensions/testresult.rb
deep_test-1.1.1 lib/deep_test/extensions/testresult.rb