Shared code for anything that can get passed to a Reporter. See Minitest::Test
& Minitest::Result
.
Did this run error?
# File minitest-5.15.0/lib/minitest.rb, line 501 def error? self.failures.any? { |f| UnexpectedError === f } end
The location identifier of this test. Depends on a method existing called class_name.
# File minitest-5.15.0/lib/minitest.rb, line 475 def location loc = " [#{self.failure.location}]" unless passed? or error? "#{self.class_name}##{self.name}#{loc}" end
Did this run pass?
Note: skipped runs are not considered passing, but they don't cause the process to exit non-zero.
# File minitest-5.15.0/lib/minitest.rb, line 467 def passed? not self.failure end