Sha256: 5f3a7e95bc2946353735ee1faae0816e0b984446ddb7cc96e1250b8edeb211a2

Contents?: true

Size: 265 Bytes

Versions: 22

Compression:

Stored size: 265 Bytes

Contents

module MiniTest
  class TestRunner < Struct.new(:suite, :test, :assertions, :time, :exception)
    def result
      case exception
      when nil then :pass
      when Skip then :skip
      when Assertion then :failure
      else :error
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
minitest-reporters-0.14.24 lib/minitest/test_runner.rb
minitest-reporters-0.14.23 lib/minitest/test_runner.rb
minitest-reporters-0.14.22 lib/minitest/test_runner.rb
minitest-reporters-0.14.21 lib/minitest/test_runner.rb
minitest-reporters-0.14.20 lib/minitest/test_runner.rb
minitest-reporters-0.14.19 lib/minitest/test_runner.rb
minitest-reporters-0.14.18 lib/minitest/test_runner.rb
minitest-reporters-0.14.17 lib/minitest/test_runner.rb
minitest-reporters-0.14.16 lib/minitest/test_runner.rb
minitest-reporters-0.14.15 lib/minitest/test_runner.rb
minitest-reporters-0.14.14 lib/minitest/test_runner.rb
minitest-reporters-0.14.13 lib/minitest/test_runner.rb
minitest-reporters-0.14.12 lib/minitest/test_runner.rb
minitest-reporters-0.14.11 lib/minitest/test_runner.rb
minitest-reporters-0.14.10 lib/minitest/test_runner.rb
minitest-reporters-0.14.9 lib/minitest/test_runner.rb
minitest-reporters-0.14.8 lib/minitest/test_runner.rb
minitest-reporters-0.14.7 lib/minitest/test_runner.rb
minitest-reporters-0.14.6 lib/minitest/test_runner.rb
minitest-reporters-0.14.5 lib/minitest/test_runner.rb