🍺 BREW Explorer

← all formulae

gotestsum

brew install gotestsum v1.13.0 Apache-2.0

Human friendly `go test` runner

77
30-day installs · #3856
301
90-day · #3529
1.2k
365-day · #3573
2.7k
★ GitHub stars · updated 4mo ago

Build dependencies

go

GitHub topics

ci go go-test golang junit-xml test test-runner testing

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "go"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Human friendly `go test` runner",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:21+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "gotestsum",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-04-15T00:47:43Z",
  "github_readme_excerpt": "# gotestsum\n\n`gotestsum` runs tests using `go test -json`, prints formatted test output, and a summary of the test run.\nIt is designed to work well for both local development, and for automation like CI.\n`gotestsum` is [used by](#who-uses-gotestsum) some of the most popular Go projects.\n\n## Install\n\nDownload a binary from [releases](https://github.com/gotestyourself/gotestsum/releases), or build from\nsource with `go install gotest.tools/gotestsum@latest`. To run without installing use\n`go run gotest.tools/gotestsum@latest`.\n\n## Documentation\n\n**Core features**\n- Change the [test output format](#output-format), from compact to verbose with color highlighting.\n- Print a [summary](#summary) of the test run after running all the tests.\n- Use any [`go test` flag](#custom-go-test-command),\n  run a script with [`--raw-command`](#custom-go-test-command),\n  or [run a compiled test binary](#executing-a-compiled-test-binary).\n\n**CI and Automation**\n- [`--junitfile`](#junit-xml-output) - write a JUnit XML file for integration with CI systems.\n- [`--jsonfile`](#json-file-output) - write all the [test2json](https://pkg.go.dev/cmd/test2json) input received by `gotestsum` to a file. The file\n  can be used as input to [`gotestsum tool slowest`](#finding-and-skipping-slow-tests), or as a way to\n  store the full verbose output of tests when less verbose output is printed to stdout using a compact [`--format`](#output-format).\n- [`--rerun-fails`](#re-running-failed-tests) - run failed (possibly flaky) tests again to avoid re-running the\n  entire suite. Re-running individual tests can save significant time when working with flaky test suites.\n\n**Local Development**\n- [`--watch`](#run-tests-when-a-file-is-saved) - every time a `.go` file is saved run the tests for the package that changed.\n- [`--post-run-command`](#post-run-command) - run a command after the tests, can be used for desktop notification of the test run.\n- [`gotestsum tool slowest`](#finding-and-skipping-slow-tests) - find ",
  "github_repo": "gotestyourself/gotestsum",
  "github_stars": 2682,
  "github_topics": [
    "ci",
    "go",
    "go-test",
    "golang",
    "junit-xml",
    "test",
    "test-runner",
    "testing"
  ],
  "homepage": "https://github.com/gotestyourself/gotestsum",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 77,
  "installs_365d": 1180,
  "installs_90d": 301,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "gotestsum",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 3856,
  "rank_365d": 3573,
  "rank_90d": 3529,
  "raw_hash": "fb070c54dc78170a",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/g/gotestsum.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "go"
  ],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.13.0",
  "versioned_formulae": [],
  "why_use_this": null
}