test-summary

command
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

test-summary turns a `go test -json` event stream into a Markdown summary for the GitHub Actions job page: the counts, every skipped test with its reason, and every failure.

Tests run verbosely, but a skipped test is still one line among tens of thousands in the log. A test that skips on every run, because a variable is never set or a tool is never installed, passes review and CI unnoticed indefinitely. The job summary puts the list where people look.

It reports and never judges: a failed test is the test run's verdict to give, so this exits zero whatever the results, and non-zero only when the stream cannot be read or holds no test results at all.

Usage:

test-summary [go-test-json-file] >> "$GITHUB_STEP_SUMMARY"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL