module Minitest::Reportable
Shared code for anything that can get passed to a Reporter. See Minitest::Test & Minitest::Result.
Public Instance Methods
Source
# File lib/minitest.rb, line 666 def error? self.failures.any? UnexpectedError end
Did this run error?
Source
# File lib/minitest.rb, line 640 def location loc = " [#{self.failure.location.delete_prefix BASE_DIR}]" unless passed? or error? "#{self.class_name}##{self.name}#{loc}" end
The location identifier of this test. Depends on a method existing called class_name.
Source
# File lib/minitest.rb, line 630 def passed? not self.failure end
Did this run pass?
Note: skipped runs are not considered passing, but they donβt cause the process to exit non-zero.
Source
# File lib/minitest.rb, line 652 def result_code self.failure and self.failure.result_code or "." end
Returns β.β, βFβ, or βEβ based on the result of the run.
Source
# File lib/minitest.rb, line 659 def skipped? self.failure and Skip === self.failure end
Was this run skipped?