class RSpecJUnitFormatter
def xml_dump_failed(example)
def xml_dump_failed(example) exception = exception_for(example) backtrace = formatted_backtrace_for(example) xml_dump_example(example) do xml.failure message: exception.to_s, type: exception.class.name do xml.cdata! "#{exception.message}\n#{backtrace.join "\n"}" end end end