Skip to content

Commit

Permalink
feat: test case id to later use for updating test case management for…
Browse files Browse the repository at this point in the history
… reporting purposes

Signed-off-by: Ivan Velasco <[email protected]>
  • Loading branch information
ivan-velasco committed Jun 22, 2023
1 parent ace8048 commit ada56b9
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 @@ -142,13 +142,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 @@ -183,6 +183,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 ada56b9

Please sign in to comment.