mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-05 21:42:53 -05:00
Store arbitrary key/value properties in Report
This commit is contained in:
@ -139,6 +139,10 @@ func CreateFromReport(report gtr.Report, hostname string, timestamp time.Time) T
|
||||
Hostname: hostname,
|
||||
}
|
||||
|
||||
for k, v := range pkg.Properties {
|
||||
suite.AddProperty(k, v)
|
||||
}
|
||||
|
||||
if len(pkg.Output) > 0 {
|
||||
suite.SystemOut = &Output{Data: formatOutput(pkg.Output, 0)}
|
||||
}
|
||||
|
Reference in New Issue
Block a user