Skip to content

Commit 8a8182e

Browse files
author
Ish Shah
committed
comment out new api field
1 parent fc18037 commit 8a8182e

File tree

1 file changed

+7
-1
lines changed
  • internal/cmd/operator-sdk/scorecard

1 file changed

+7
-1
lines changed

internal/cmd/operator-sdk/scorecard/cmd.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,19 @@ func (c *scorecardCmd) convertXunit(output v1alpha3.TestList) (TestSuites, error
190190
tempResults := item.Status.Results
191191
for _, res := range tempResults {
192192
var tCase TestCase
193+
var tSuite TestSuite
194+
tSuite.Name = res.Name
193195
tCase.Name = res.Name
194196
if res.State == v1alpha3.ErrorState {
195197
tCase.Errors = append(tCase.Errors, xUnitComplexError{"Error", strings.Join(res.Errors, ",")})
198+
tSuite.Errors = strings.Join(res.Errors, ",")
196199
} else if res.State == v1alpha3.FailState {
197200
tCase.Failures = append(tCase.Failures, xUnitComplexFailure{"Failure", res.Log})
201+
tSuite.Failures = res.Log
198202
}
199-
203+
tSuite.TestCases = append(tSuite.TestCases, tCase)
204+
tSuite.URL = item.Spec.Image
205+
//tSuite.ID = item.Spec.UniqueID
200206
}
201207
}
202208

0 commit comments

Comments
 (0)