Skip to content

Commit

Permalink
try fixing CI test reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Sep 27, 2023
1 parent 3af2039 commit 8b9f000
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ print_report spec config builder =
Test_Result.Failure msg details ->
escaped_message = escape_xml msg . replace '\n' '
'
builder.append ('\n <failure message="' + escaped_message + '">\n')
# We always print the message again as content - otherwise the GitHub action may fail to parse it.
builder.append (escape_xml msg)
if details.is_nothing.not then
## We duplicate the message, because sometimes the
attribute is skipped if the node has any content.
builder.append (escape_xml msg)
builder.append '\n'
## If there are additional details, we print them as well.
builder.append '\n\n'
builder.append (escape_xml details)
builder.append '</failure>\n'
Test_Result.Pending msg -> builder.append ('\n <skipped message="' + (escape_xml msg) + '"/>\n ')
Expand Down

0 comments on commit 8b9f000

Please sign in to comment.