/test:testfrom test
Smart test runner with watch mode, coverage, and path-specific testing. Use when running tests or checking test coverage.
Ships in test. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Smart test execution with multiple modes. Wraps the project's test command with intelligence: watch mode, coverage reporting, and focused testing.
| Command | Purpose |
|---|---|
/test configure | Discover test framework and patterns |
/test | Run all tests |
/test --watch | Watch mode |
/test --coverage | Run with coverage report |
/test <path> | Run tests for specific path |
When: Framework setup (one-time)
Discovers:
*.test.ts, *_test.py, etc.)Saves to: .claude/skills-config.env (framework-level test commands)
The configure wizard discovers the test framework and proposes commands:
# Example discovered configuration
TEST_COMMAND=npm test
TEST_WATCH_COMMAND=npm test -- --watch
TEST_COVERAGE_COMMAND=npm test -- --coverage
These enable the Taskfile tasks:
task test - Run all teststask test:watch - Watch modetask test:coverage - Coverage reportWhen: Run complete test suite
/test
Behavior:
.claude/skills/test.yamltask -t .claude/Taskfile.dev.yaml test if no configWhen: Continuous test running during development
/test --watch
Behavior:
Framework support:
| Framework | Command |
|---|---|
| vitest | vitest --watch |
| jest | jest --watch |
| pytest | pytest-watch or ptw |
| go test | External: watchexec -e go -- go test ./... |
When: Run tests for specific file or directory
/test src/auth/
/test src/user.test.ts
/test tests/integration/
Behavior:
When: Run tests with coverage report
/test --coverage
Behavior:
Config path depends on how the plugin was installed:
| Plugin Scope | Config File | Git |
|---|---|---|
| project | .claude/skills/test.yaml | Committed (shared) |
| local | .claude/skills/test.local.yaml | Ignored (personal) |
| user | .claude/skills/test.local.yaml | Ignored (personal) |
Precedence when reading (first found wins):
.claude/skills/test.local.yaml.claude/skills/test.yamlversion: 1
discovered_at: "ISO timestamp"
framework: vitest | jest | pytest | go | cargo
language: typescript | javascript | python | go | rust
patterns:
test_files: "glob pattern"
test_directories: []
source_to_test_mapping:
- source: "src/**/*.ts"
test: "src/**/*.test.ts"
commands:
all: "command to run all tests"
watch: "command for watch mode"
single: "command with {file} placeholder"
coverage: "command for coverage"
coverage:
tool: "v8 | istanbul | coverage.py | go cover"
report_path: "coverage/"
threshold: 80
options:
parallel: true
bail: false
verbose: false
/test --coverage
Output:
Running tests with coverage...
PASS src/auth/login.test.ts (3 tests)
PASS src/api/handler.test.ts (5 tests)
PASS src/utils/helpers.test.ts (8 tests)
Coverage Summary:
Statements: 87.5% (140/160)
Branches: 82.3% (45/55)
Functions: 91.2% (52/57)
Lines: 88.1% (138/157)
Full report: coverage/index.html
/test src/auth/login.test.ts
| Skill | Integration |
|---|---|
/tdd | Uses /test for running tests in TDD cycle |
/developer | Calls /test before completing |
/bugfix | Uses /test to verify fix |
/workflow | Runs /test before PR |
Run /test configure or /framework configure to set up test commands.
Some frameworks need additional packages:
pip install pytest-watchbrew install watchexecWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dohernandez/claude-skills --plugin test