class Minitest::Reporters::HtmlReporter

def message_for(test)

based on message_for(test) from the JUnit reporter
def message_for(test)
  suite = test.class
  name = test.name
  e = test.failure
  if test.passed?
    nil
  elsif test.skipped?
    "Skipped:\n#{name}(#{suite}) [#{location(e)}]:\n#{e.message}\n"
  elsif test.failure
    "Failure:\n#{name}(#{suite}) [#{location(e)}]:\n#{e.message}\n"
  elsif test.error?
    "Error:\n#{name}(#{suite}):\n#{e.message}"
  end
end