test-coverage
Analyze test coverage, identify files below 80% threshold, and generate missing tests. Supports unit, integration, and E2E tests.
от Luohaothu★ 24 звезды на GitHub
Установить test-coverage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Test Coverage Skill
Analyze test coverage and generate missing tests to reach 80%+ coverage.
Workflow
- Run tests with coverage reporting
- Analyze coverage report
- Identify files below 80% threshold
- For each under-covered file:
- Analyze untested code paths
- Generate unit tests for functions
- Generate integration tests for APIs
- Generate E2E tests for critical flows
- Verify new tests pass
- Show before/after coverage metrics
Focus Areas
- Happy path scenarios
- Error handling paths
- Edge cases (null, undefined, empty, boundary values)
- Branch coverage (if/else, switch cases)
Coverage Commands
JavaScript/TypeScript
npm test -- --coverage
pnpm test -- --coverage
Go
go test -cover ./...
go test -coverprofile=coverage.out ./...
go tool cover -func=coverage.out
Python
pytest --cov=. --cov-report=term-missing
Coverage Targets
| Code Type | Target |
|---|---|
| Critical business logic | 100% |
| Public APIs | 90%+ |
| General code | 80%+ |
| Generated/vendor code | Exclude |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл test-coverage?
Analyze test coverage, identify files below 80% threshold, and generate missing tests. Supports unit, integration, and E2E tests.
Как установить скилл test-coverage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-coverage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…