Skip to content

Commit 947834f

Browse files
committed
Added file and line to both message and content of junit <failure> tag
1 parent 5afdb80 commit 947834f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/printers/junitxml.go

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

0 commit comments

Comments
 (0)