Skip to content

Commit

Permalink
feat: add id attribute in testcase
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Velasco <[email protected]>
  • Loading branch information
ivan-velasco authored Jul 28, 2023
1 parent 5b319da commit 7f81891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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"`
}

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"`
}

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,
}
tsXML.TestCases = append(tsXML.TestCases, tcXML)
}
Expand Down

0 comments on commit 7f81891

Please sign in to comment.