Skip to content

Commit 3d712f2

Browse files
committed
junit: Don't include File attribute when it's empty
1 parent 03010d4 commit 3d712f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

junit/junit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type Testsuite struct {
5252
Skipped int `xml:"skipped,attr,omitempty"`
5353
Time string `xml:"time,attr"` // duration in seconds
5454
Timestamp string `xml:"timestamp,attr,omitempty"` // date and time in ISO8601
55-
File string `xml:"file,attr"`
55+
File string `xml:"file,attr,omitempty"`
5656

5757
Properties *[]Property `xml:"properties>property,omitempty"`
5858
Testcases []Testcase `xml:"testcase,omitempty"`

0 commit comments

Comments
 (0)