mrpointer/dotfiles · Archived

testing-go-code

Run Go unit tests, coverage reports, and benchmarks. Use when you need to run tests, check coverage, run benchmarks, or regenerate mocks after interface changes.

First seen Apr 7, 2026

Installation

$ npx skills add mrpointer/dotfiles --skill testing-go-code

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from mrpointer/dotfiles · top by installs.

npx skills add mrpointer/dotfiles

Browse all from mrpointer/dotfiles

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
Default branch main
Open issues 1
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,110 B
  • docs SUMMARY.md 184 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

Testing Go Code

All commands run from the Go module root (installer/).

Unit Tests

task test                       # Run all tests with race detection
task test -- -run TestName      # Run specific test(s)
task test -- -short             # Skip integration tests

For test conventions (naming, assertions, table-driven patterns, mock usage), see the writing-go-tests skill.

Coverage

task cov

Runs tests with coverage and opens an HTML report in the browser.

Benchmarks

task bench

Runs all benchmarks with memory allocation stats.

Combined Check

task check

Runs tests + lint in sequence. Use before committing.

Mock Regeneration

mockery

Run from the module root with no arguments after adding or modifying interfaces. Configuration is in .mockery.yml. Never edit generated mock files (*_mock.go) manually.