Class: MiniTest::TestRunner

Inherits:
Struct
  • Object
show all
Defined in:
lib/minitest/test_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#assertionsObject

Returns the value of attribute assertions

Returns:

  • (Object)

    the current value of assertions



2
3
4
# File 'lib/minitest/test_runner.rb', line 2

def assertions
  @assertions
end

#exceptionObject

Returns the value of attribute exception

Returns:

  • (Object)

    the current value of exception



2
3
4
# File 'lib/minitest/test_runner.rb', line 2

def exception
  @exception
end

#suiteObject

Returns the value of attribute suite

Returns:

  • (Object)

    the current value of suite



2
3
4
# File 'lib/minitest/test_runner.rb', line 2

def suite
  @suite
end

#testObject

Returns the value of attribute test

Returns:

  • (Object)

    the current value of test



2
3
4
# File 'lib/minitest/test_runner.rb', line 2

def test
  @test
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



2
3
4
# File 'lib/minitest/test_runner.rb', line 2

def time
  @time
end

Instance Method Details

#result



3
4
5
6
7
8
9
10
# File 'lib/minitest/test_runner.rb', line 3

def result
  case exception
  when nil then :pass
  when Skip then :skip
  when Assertion then :failure
  else :error
  end
end