mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-05 21:42:53 -05:00
parser/gotest: Don't ignore output when there were no tests
In some cases we may have captured some output for a package that didn't have any tests. We should include it in the generated report as it may contain useful information.
This commit is contained in:
@ -210,6 +210,8 @@ func (b *reportBuilder) CreatePackage(name, result string, duration time.Duratio
|
||||
Name: name,
|
||||
Output: b.output.Get(globalID),
|
||||
}
|
||||
} else if b.output.Contains(globalID) {
|
||||
pkg.Output = b.output.Get(globalID)
|
||||
}
|
||||
b.packages = append(b.packages, pkg)
|
||||
b.output.Clear(globalID)
|
||||
|
Reference in New Issue
Block a user