Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/xmlreport test id #688

Merged
merged 10 commits into from
Jul 28, 2023
2 changes: 2 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,15 @@ type TestCaseXML struct {
Systemout InnerResult `xml:"system-out,omitempty" json:"systemout" yaml:"systemout,omitempty"`
Systemerr InnerResult `xml:"system-err,omitempty" json:"systemerr" yaml:"systemerr,omitempty"`
Time float64 `xml:"time,attr,omitempty" json:"time" yaml:"time,omitempty"`
Id string `xml:"id,attr,omitempty" json:"id" yaml:"id"`
yesnault marked this conversation as resolved.
Show resolved Hide resolved
}

type TestCaseInput struct {
Name string `json:"name" yaml:"name"`
Vars H `json:"vars" yaml:"vars"`
Skip []string `json:"skip" yaml:"skip"`
RawTestSteps []json.RawMessage `json:"steps" yaml:"steps"`
Id string `json:"id" yaml:"id"`
yesnault marked this conversation as resolved.
Show resolved Hide resolved
}

type TestCase struct {
Expand Down
1 change: 1 addition & 0 deletions venom_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ func outputXMLFormat(tests Tests) ([]byte, error) {
Systemout: systemout,
Systemerr: systemerr,
Time: tc.Duration,
Id: tc.Id,
yesnault marked this conversation as resolved.
Show resolved Hide resolved
}
tsXML.TestCases = append(tsXML.TestCases, tcXML)
}
Expand Down