CheckOps home

Tools directory

G

CheckOps

gotestsum

gotestsum is an Apache-2.0 'go test' runner that formats output for humans, writes JUnit XML for CI, summarises results and can rerun failed tests.

Visit website

Latest public signals

Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.

Visit Website

Introduction

gotestsum runs go test and reformats its JSON output. Its description promises output optimised for humans, JUnit XML for CI integration, and a summary of results.

Formats range from dots to package lists to testname views, and the summary lists failures, skips and slow tests at the end. --junitfile writes reports that CI systems display natively, --jsonfile saves raw events, --rerun-fails retries failed tests to separate flakes from real failures, and --watch reruns tests when files change.

In the quality loop gotestsum improves CI reporting and flaky-test handling for Go.

The source code is at gotestyourself/gotestsum on GitHub under the Apache-2.0 licence, with about 2,700 stars; the most recent commit was on 15 April 2026.

Features

  1. Readable formats: Several output styles.
  2. JUnit XML: Native CI test reports.
  3. Rerun failures: Retry failed tests a set number of times.
  4. Watch mode: Rerun on file changes.
  5. Slow test report: Highlights slow tests.
  6. Wraps go test: No changes to tests needed.

Pros

  1. Drop-in: Works with any Go test suite.
  2. Free to use: Open source under the Apache-2.0 licence, so the core tool costs nothing to use.
  3. Actively maintained: The repository had commits as recent as 15 April 2026.

Cons

  1. Go only: Single-language tool.
  2. Retries can hide flakes: Track reruns rather than ignoring them.
  3. Infrequent releases: Last release was in 2025.
go install gotest.tools/gotestsum@latest
gotestsum --format testname --junitfile report.xml --rerun-fails=2 --packages=./... -- -race

Resources:

Pricing

gotestsum is free and open source under the Apache-2.0 licence.

  1. Go teams wanting readable CI output and JUnit reports.
  2. Repositories with occasional flaky tests.

Conclusion

gotestsum is a small tool that noticeably improves Go test output in CI.

Use reruns to measure flakiness, not to mask it.

On CheckOps, gotestsum is filed under the Release & CI gates and Unit testing stages. Related tools listed here include Go testing package, Testify, Ginkgo, pytest-rerunfailures, Gradle Test Retry Plugin and Trunk Flaky Tests. Before standardising on one, compare recent maintenance activity, the pricing model as your usage grows, and the integrations you rely on today. Information on this page was verified against the official website, documentation and repository on 11 November 2026.

Alternatives

Other tools on CheckOps that cover similar ground. Open a page, or compare one with gotestsum side by side.