# Summarize failing Go test runs and rerun flakes before CI repair loops with gotestsum

> Use gotestsum to turn noisy `go test` output into compact failure summaries, JUnit or JSON artifacts, and optional reruns of flaky tests before an agent starts fixing Go code.

- Skill: `agentskillexchange/summarize-failing-go-test-runs-and-rerun-flakes-before-ci-re` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/summarize-failing-go-test-runs-and-rerun-flakes-before-ci-re`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/summarize-failing-go-test-runs-and-rerun-flakes-before-ci-re/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/summarize-failing-go-test-runs-and-rerun-flakes-before-ci-re

---


# Summarize failing Go test runs and rerun flakes before CI repair loops with gotestsum

Use gotestsum to turn noisy `go test` output into compact failure summaries, JUnit or JSON artifacts, and optional reruns of flaky tests before an agent starts fixing Go code.

## Prerequisites

gotestsum, Go toolchain

## Installation

Requirements and caveats from upstream:
- The nerdfonts icons requires a font from [Nerd Fonts](https://www.nerdfonts.com/).
- Note that using --rerun-fails may require the use of other flags, depending on
- [moby](https://github.com/moby/moby/blob/master/hack/test/unit) (aka Docker)

Basic usage or getting-started notes:
- gotestsum runs tests using go test -json, prints formatted test output, and a summary of the test run.
- Download a binary from [releases](https://github.com/gotestyourself/gotestsum/releases), or build from
- source with go install gotest.tools/gotestsum@latest. To run without installing use

- Source: https://github.com/gotestyourself/gotestsum
- Extracted from upstream docs: https://raw.githubusercontent.com/gotestyourself/gotestsum/HEAD/README.md

## Documentation

- https://github.com/gotestyourself/gotestsum

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/summarize-failing-go-test-runs-and-rerun-flakes-before-ci-repair-loops-with-gotestsum/)

