用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/joshka0/foxctl --skill foxctl-test-runner命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | foxctl Test Runner |
| description | Run tests with coverage, benchmarks, and race detection. Structured test results for Go projects. |
Run tests with various modes and get structured results.
foxctl run test/run --input '{"path": "./..."}'
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
path | string | No | ./... | Path to test |
mode | string | No | test | Mode: test, race, bench, coverage |
short | boolean | No | false | Run in short mode |
verbose | boolean | No | false | Verbose output |
pattern | string | No | - | Run tests matching pattern (-run) |
timeout | string | No | 10m | Test timeout |
foxctl run test/run --input '{
"path": "./internal/...",
"mode": "test"
}'
Find data races:
foxctl run test/run --input '{
"path": "./...",
"mode": "race"
}'
Get code coverage metrics:
foxctl run test/run --input '{
"path": "./...",
"mode": "coverage"
}'
Run performance benchmarks:
foxctl run test/run --input '{
"path": "./...",
"mode": "bench"
}'
Run specific tests:
foxctl run test/run --input '{
"path": "./internal/cache/...",
"pattern": "TestCache.*"
}'
Skip long-running tests:
foxctl run test/run --input '{
"path": "./...",
"short": true
}'
Custom timeout for slow tests:
foxctl run test/run --input '{
"path": "./integration/...",
"timeout": "30m"
}'
foxctl run test/run --input '{
"path": "./...",
"short": true,
"timeout": "5m"
}'
foxctl run test/run --input '{
"path": "./...",
"mode": "race",
"verbose": true
}'
foxctl run test/run --input '{
"path": "./internal/auth/...",
"pattern": "TestLogin",
"verbose": true
}'
foxctl run test/run --input '{
"path": "./...",
"mode": "coverage"
}'
Returns structured test results:
{
"data": {
"passed": 42,
"failed": 1,
"skipped": 3,
"duration_ms": 5230,
"coverage_pct": 78.5,
"failures": [
{
"test": "TestLogin/invalid_password",
"package": "internal/auth",
"message": "expected error, got nil"
}
]
}
}