We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 254a920 commit 7c21ae1Copy full SHA for 7c21ae1
internal/app/table_summary.go
@@ -176,6 +176,13 @@ func (c *consoleWriter) summaryTable(
176
case parse.ActionFail:
177
status = c.red(status)
178
}
179
+
180
+ // Skip packages with no coverage to mimic nocoverageredesign behavior (changed in github.com/golang/go/issues/24570)
181
+ totalTests := len(pkg.TestsByAction(parse.ActionPass)) + len(pkg.TestsByAction(parse.ActionFail)) + len(pkg.TestsByAction(parse.ActionSkip))
182
+ if pkg.Cover && pkg.Coverage == 0.0 && totalTests == 0 {
183
+ continue
184
+ }
185
186
row := summaryRow{
187
status: status,
188
elapsed: elapsed,
0 commit comments