mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-05 05:00:15 -05:00
junit: Don't include File attribute when it's empty
This commit is contained in:
parent
03010d4a32
commit
3d712f2417
@ -52,7 +52,7 @@ type Testsuite struct {
|
||||
Skipped int `xml:"skipped,attr,omitempty"`
|
||||
Time string `xml:"time,attr"` // duration in seconds
|
||||
Timestamp string `xml:"timestamp,attr,omitempty"` // date and time in ISO8601
|
||||
File string `xml:"file,attr"`
|
||||
File string `xml:"file,attr,omitempty"`
|
||||
|
||||
Properties *[]Property `xml:"properties>property,omitempty"`
|
||||
Testcases []Testcase `xml:"testcase,omitempty"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user