Store arbitrary key/value properties in Report

This commit is contained in:
Joël Stemmer
2022-03-13 22:55:55 +00:00
parent 9aa9bd94d8
commit 10affc0da1
2 changed files with 16 additions and 4 deletions

View File

@ -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)}
}