From ada56b98515bfc6f3b1e4bcc5230225ac5cd3bac Mon Sep 17 00:00:00 2001 From: Ivan Velasco Date: Wed, 21 Jun 2023 17:04:42 -0700 Subject: [PATCH] feat: test case id to later use for updating test case management for reporting purposes Signed-off-by: Ivan Velasco --- types.go | 2 ++ venom_output.go | 1 + 2 files changed, 3 insertions(+) diff --git a/types.go b/types.go index ca7b26a9..7786b337 100644 --- a/types.go +++ b/types.go @@ -142,6 +142,7 @@ 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 { @@ -149,6 +150,7 @@ type TestCaseInput struct { 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 { diff --git a/venom_output.go b/venom_output.go index eef98cae..594e793c 100644 --- a/venom_output.go +++ b/venom_output.go @@ -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) }