class Minitest::Reporters::JUnitReporter
def xml_message_for(test)
def xml_message_for(test) # This is a trick lifted from ci_reporter xml = Builder::XmlMarkup.new(:indent => 2, :margin => 2) def xml.trunc!(txt) txt.sub(/\n.*/m, '...') end e = test.failure if test.skipped? xml.skipped(:type => test.name) elsif test.error? xml.error(:type => test.name, :message => xml.trunc!(e.message)) do xml.text!(message_for(test)) end elsif test.failure xml.failure(:type => test.name, :message => xml.trunc!(e.message)) do xml.text!(message_for(test)) end end end