← スキル一覧に戻る

go-test
by mway
⭐ 4🍴 0📅 2026年1月22日
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:-./...}
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です