一键导入
test-runner
Run Go and frontend tests for kattle project. Use after code changes to verify correctness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Go and frontend tests for kattle project. Use after code changes to verify correctness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Create a git worktree for a new TASK. Use when starting a new feature, fix, or refactor task that requires isolated development.
Go code quality rules and standards for kattle project. Apply when writing or reviewing Go code.
macOS native memory analysis tools (leaks, heap, vmmap, Instruments). Use for native app memory debugging.
Memory profile snapshot capture and baseline comparison. Use for verification after memory optimization.
Go application memory profiling and analysis. Use when investigating memory leaks or high memory usage.
React/TypeScript code quality rules for kattle frontend. Apply when writing or reviewing frontend code.
基于 SOC 职业分类
| name | test-runner |
| description | Run Go and frontend tests for kattle project. Use after code changes to verify correctness. |
| disable-model-invocation | true |
| user-invocable | true |
| allowed-tools | Bash, Read |
This skill provides commands and workflows for running tests in the kattle project across Go backend and React frontend codebases.
Run backend tests using the Go test runner:
# All tests
go test ./...
# Specific package
go test ./internal/kube/...
# With verbose output
go test -v ./...
# With race detection
go test -race ./...
# With coverage
go test -cover ./...
-v: Verbose output with individual test results-race: Enable race condition detection-cover: Display coverage percentage-timeout: Set timeout (e.g., -timeout 30s)-run: Run specific tests matching pattern (e.g., -run TestName)Run frontend tests using npm in the React project:
# Run all tests (single run)
npm --prefix cmd/gui/frontend run test:run
# Watch mode (re-run on file changes)
npm --prefix cmd/gui/frontend run test
# With coverage report
npm --prefix cmd/gui/frontend run test:run -- --coverage
test: Run tests in watch mode for developmenttest:run: Single test run (useful for CI/CD)coverage/ directoryRun both Go and frontend tests in sequence:
# Quick validation (both suites)
go test ./... && npm --prefix cmd/gui/frontend run test:run
This validates the entire codebase before committing or creating a PR.
After running tests, expect output with:
After making changes: Run targeted tests first
go test ./internal/kube/...
Before committing: Run full test suites
go test ./... && npm --prefix cmd/gui/frontend run test:run
For pull requests: Include coverage results
go test -cover ./...
npm --prefix cmd/gui/frontend run test:run -- --coverage