Skip to content

Commit 5afdb80

Browse files
committed
Print error text in <failure> tag content for more readable junit reports
1 parent 669852e commit 5afdb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/printers/junitxml.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (JunitXML) Print(ctx context.Context, issues []result.Issue) error {
5757
ClassName: i.Pos.String(),
5858
Failure: failureXML{
5959
Message: i.Text,
60-
Content: strings.Join(i.SourceLines, "\n"),
60+
Content: i.Text + ":\n" + strings.Join(i.SourceLines, "\n"),
6161
},
6262
}
6363

0 commit comments

Comments
 (0)