testing-strategy-builder
БесплатноБез исполняемых скриптовНе проверенUse this skill when creating comprehensive testing strategies for applications. Provides test planning templates, coverage targets, test case structures, and…
от aiskillstore★ 509 звёзд на GitHubОб этом скилле
Testing Strategy Builder
Overview
This skill provides comprehensive guidance for building effective testing strategies that ensure software quality, reliability, and maintainability. Whether starting from scratch or improving existing test coverage, this framework helps teams design robust testing approaches.
When to use this skill:
- Planning testing strategy for new projects or features
- Improving test coverage in existing codebases
- Establishing quality gates and coverage targets
- Designing test automation architecture
- Creating test plans and test cases
- Choosing appropriate testing tools and frameworks
- Implementing continuous testing in CI/CD pipelines
Bundled Resources:
references/code-examples.md- Detailed testing code examplestemplates/test-plan-template.md- Comprehensive test plan templatetemplates/test-case-template.md- Test case documentation templatechecklists/test-coverage-checklist.md- Coverage verification checklist
Required Tools
This skill references the following testing tools. Not all are required - the skill will recommend appropriate tools based on your project.
JavaScript/TypeScript Testing
Jest: Most popular testing framework
- Install:
npm install --save-dev jest @types/jest - Config:
npx jest --init
- Install:
Vitest: Vite-native testing framework
- Install:
npm install --save-dev vitest - Config: Add to vite.config.ts
- Install:
Playwright: End-to-end testing
- Install:
npm install --save-dev @playwright/test - Setup:
npx playwright install
- Install:
k6: Performance testing
- Install (macOS):
brew install k6 - Install (Linux): Download from k6.io
- Command:
k6 run script.js
- Install (macOS):
Python Testing
pytest: Standard Python testing framework
- Install:
pip install pytest - Command:
pytest
- Install:
pytest-cov: Coverage reporting
- Install:
pip install pytest-cov - Command:
pytest --cov=.
- Install:
Locust: Performance testing
- Install:
pip install locust - Command:
locust -f locustfile.py
- Install:
Coverage Tools
c8: JavaScript/TypeScript coverage
- Install:
npm install --save-dev c8 - Command:
c8 npm test
- Install:
Istanbul/nyc: Alternative JS coverage
- Install:
npm install --save-dev nyc - Command:
nyc npm test
- Install:
Installation Verification
# JavaScript/TypeScript
jest --version
vitest --version
playwright --version
k6 version
# Python
pytest --version
locust --version
# Coverage
c8 --version
nyc --version
Note: The skill will guide you to select tools based on your project framework (React, Vue, FastAPI, Django, etc.) and testing needs.
Testing Philosophy
The Testing Trophy 🏆
Modern testing follows the "Testing Trophy" model (evolved from the testing pyramid):
🏆
/ \
/ E2E \ ← Few (critical user journeys)
/----------\
/ Integration\ ← Many (component interactions)
/--------------\
/ Unit \ ← Most (business logic)
/------------------\
/ Static Analysis \ ← Foundation (linting, type checking)
Principles:
- Static Analysis: Catch syntax errors, type issues, and common bugs before runtime
- Unit Tests: Test individual functions and components in isolation
- Integration Tests: Test how components work together
- E2E Tests: Validate critical user workflows end-to-end
Balance: 70% integration, 20% unit, 10% E2E (adjust based on context)
Testing Strategy Framework
1. Coverage Targets
Recommended Targets:
- Overall Code Coverage: 80% minimum
- Critical Paths: 95-100% (payment, auth, data mutations)
- New Features: 100% coverage requirement
- Business Logic: 90%+ coverage
- UI Components: 70%+ coverage
Coverage Types:
- Line Coverage: Percentage of code lines executed
- Branch Coverage: Percentage of decision branches taken
- Function Coverage: Percentage of functions called
- Statement Coverage: Percentage of statements executed
Important: Coverage is a metric, not a goal. 100% coverage ≠ bug-free code.
2. Test Classification
Static Analysis
Purpose: Catch errors before runtime Tools: ESLint, Prettier, TypeScript, Pylint, mypy, Ruff When to run: Pre-commit hooks, CI pipeline
Unit Tests
Purpose: Test isolated business logic Tools: Jest, Vitest, pytest, JUnit Characteristics:
- Fast execution (< 100ms per test)
- No external dependencies (database, API, filesystem)
- Deterministic (same input = same output)
- Test single responsibility
Coverage Target: 90%+ for business logic
See references/code-examples.md for detailed unit test examples.
Integration Tests
Purpose: Test component interactions Tools: Testing Library, Supertest, pytest with fixtures Characteristics:
- Test multiple units working together
- May use test databases or m
Установить testing-strategy-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл testing-strategy-builder?
Use this skill when creating comprehensive testing strategies for applications. Provides test planning templates, coverage targets, test case structures, and guidance for unit, integration, E2E, and performance testing. Ensures robust quality assurance across the development lifecycle.
Как установить скилл testing-strategy-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл testing-strategy-builder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic