Skip to content

Commit

Permalink
Output errored class name as an “error[type]” attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Dec 19, 2019
1 parent c4694d6 commit d711cb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/spec/junit_formatter.cr
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ module Spec
HTML.escape(message, io)
io << '"'
end
if tag == :error
io << %( type=")
HTML.escape(exception.class.name, io)
io << '"'
end
io << '>'

if backtrace = exception.backtrace?
Expand Down

0 comments on commit d711cb1

Please sign in to comment.