File tree 1 file changed +8
-6
lines changed
internal/testrunner/reporters/formats
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,13 @@ type testCase struct {
43
43
ClassName string `xml:"classname,attr"`
44
44
TimeInSeconds float64 `xml:"time,attr"`
45
45
46
- Error string `xml:"error,omitempty"`
47
- Failure string `xml:"failure,omitempty"`
48
- Skipped struct {
49
- Message string `xml:"message,attr"`
50
- } `xml:"skipped,omitempty"`
46
+ Error string `xml:"error,omitempty"`
47
+ Failure string `xml:"failure,omitempty"`
48
+ Skipped * skipped `xml:"skipped,omitempty"`
49
+ }
50
+
51
+ type skipped struct {
52
+ Message string `xml:"message,attr"`
51
53
}
52
54
53
55
func reportXUnitFormat (results []testrunner.TestResult ) (string , error ) {
@@ -101,7 +103,7 @@ func reportXUnitFormat(results []testrunner.TestResult) (string, error) {
101
103
}
102
104
103
105
if r .Skipped {
104
- c .Skipped . Message = "test"
106
+ c .Skipped = & skipped { "" } // TODO: include reason?
105
107
}
106
108
107
109
numTests ++
You can’t perform that action at this time.
0 commit comments