diff --git a/pkg/gtr/builder.go b/pkg/gtr/builder.go index 637a337..c20212c 100644 --- a/pkg/gtr/builder.go +++ b/pkg/gtr/builder.go @@ -38,8 +38,10 @@ func (b *ReportBuilder) newId() int { } func (b *ReportBuilder) flush() { - if len(b.tests) > 0 { - b.CreatePackage(b.packageName, 0) + // Create package in case we have tests or benchmarks that didn't get a + // summary. + if len(b.tests) > 0 || len(b.benchmarks) > 0 { + b.CreatePackage(b.packageName, 0, "") } }