Skip to content

Commit

Permalink
Print error text in <failure> tag content for more readable junit rep…
Browse files Browse the repository at this point in the history
…orts
  • Loading branch information
byrnedo committed Jan 4, 2022
1 parent 669852e commit 5afdb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/printers/junitxml.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (JunitXML) Print(ctx context.Context, issues []result.Issue) error {
ClassName: i.Pos.String(),
Failure: failureXML{
Message: i.Text,
Content: strings.Join(i.SourceLines, "\n"),
Content: i.Text + ":\n" + strings.Join(i.SourceLines, "\n"),
},
}

Expand Down

0 comments on commit 5afdb80

Please sign in to comment.