Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/rspec_junit_formatter/rspec3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ def failure_message_for(example)
end

def failure_for(notification)
strip_diff_colors(notification.message_lines.join("\n")) << "\n" << notification.formatted_backtrace.join("\n")
strip_diff_colors(formatted_lines_for(notification).join("\n"))
end

def formatted_lines_for(notification)
# drop(2) removes the description (regardless of newlines) and leading blank line
notification.fully_formatted_lines(nil, RSpec::Core::Notifications::NullColorizer).drop(2)
end

def exception_for(notification)
Expand Down