Back to list
mway

go-test

by mway

4🍴 0📅 Jan 22, 2026

SKILL.md


name: go-test description: Run Go tests with race detection and coverage. Use when asked to run tests, check test coverage, or verify Go code functionality. allowed-tools: ["shell"] metadata: short-description: Run Go tests with race detection

Go Test Runner

Reference: ~/.config/agent/domain/coding/go/tooling.md for Go command details

Instructions

Run Go tests with proper flags per AGENT.md guidelines:

Standard Test Run

go test -race -count 1 -coverprofile=cover.out ${ARGUMENTS}

Default to ./... if no package path is provided.

Verbose Mode

If user requests verbose output:

go test -v -race -count 1 -coverprofile=cover.out ${ARGUMENTS}

Coverage Report

After tests pass, offer to show coverage:

# Text summary
go tool cover -func=cover.out

# HTML report (opens in browser)
go tool cover -html=cover.out

Package-Specific Tests

For single package:

go test -race -count 1 ./path/to/package

Test Flags

  • -race: Enable race detector
  • -count 1: Disable test caching
  • -coverprofile: Generate coverage profile
  • -v: Verbose output (when requested)

Arguments

Target package(s): ${ARGUMENTS:-./...}

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon