QA & Testing Engine — Complete Software Quality System
БесплатноБез исполняемых скриптовНе проверенBefore writing a single test, design the strategy.
от modbender★ 21 звезда на GitHubОб этом скилле
QA & Testing Engine — Complete Software Quality System
The definitive testing methodology for AI agents. From test strategy to execution, coverage to reporting — everything you need to ship quality software.
Phase 1: Test Strategy Design
Before writing a single test, design the strategy.
Strategy Brief Template
project:
name: ""
type: web-app | api | mobile | library | cli | data-pipeline
languages: [typescript, python, go, java]
frameworks: [react, express, django, spring]
risk_profile:
data_sensitivity: low | medium | high | critical # PII, financial, health
user_impact: internal | b2b | b2c | life-safety
deployment_frequency: daily | weekly | monthly
regulatory: [none, SOC2, HIPAA, PCI-DSS, GDPR]
test_scope:
in_scope: [] # Features, services, components
out_of_scope: [] # Explicitly excluded (with reason)
environments:
dev: { url: "", db: "local" }
staging: { url: "", db: "seeded" }
prod: { url: "", smoke_only: true }
Test Type Decision Matrix
| Risk Profile | Unit | Integration | E2E | Performance | Security | Accessibility |
|---|---|---|---|---|---|---|
| Internal tool | ✅ Core | ✅ API | ⚠️ Happy path | ❌ | ⚠️ Basic | ❌ |
| B2B SaaS | ✅ Full | ✅ Full | ✅ Critical flows | ✅ Load | ✅ OWASP Top 10 | ✅ WCAG AA |
| B2C high-traffic | ✅ Full | ✅ Full | ✅ Full | ✅ Stress + soak | ✅ Full | ✅ WCAG AA |
| Financial/Health | ✅ Full + mutation | ✅ Full + contract | ✅ Full + chaos | ✅ Full suite | ✅ Pen test | ✅ WCAG AAA |
Test Pyramid Architecture
/ E2E \ 5-10% — Critical user journeys only
/ Integration \ 20-30% — API contracts, service boundaries
/ Unit Tests \ 60-70% — Business logic, pure functions
Anti-pattern: Ice cream cone — More E2E than unit tests. Slow, flaky, expensive. Fix by pushing test coverage DOWN the pyramid.
Anti-pattern: Hourglass — Lots of unit + E2E, no integration. Misses contract bugs between services.
Phase 2: Unit Testing Mastery
The AAA Pattern (Arrange-Act-Assert)
Every unit test follows this structure:
describe('PricingCalculator', () => {
// Group by behavior, not by method
describe('when customer has volume discount', () => {
it('applies tiered pricing above threshold', () => {
// ARRANGE — Set up the scenario
const calculator = new PricingCalculator();
const customer = createCustomer({ tier: 'enterprise', units: 150 });
// ACT — Execute the behavior under test
const price = calculator.calculate(customer);
// ASSERT — Verify the outcome (ONE logical assertion)
expect(price).toEqual({
subtotal: 12000,
discount: 1800, // 15% volume discount
total: 10200,
});
});
});
});
Test Naming Convention
Format: [unit] [scenario] [expected behavior]
✅ Good:
PricingCalculator applies 15% discount when units exceed 100UserService throws NotFoundError when user ID is invalidparseDate returns null for malformed ISO strings
❌ Bad:
test1,should work,calculates price
What to Unit Test (Priority Order)
- Business logic — Pricing, rules, calculations, state machines
- Data transformations — Parsers, formatters, serializers, mappers
- Edge cases — Boundaries, null/undefined, empty collections, overflow
- Error handling — Every
catchblock, every validation path - Pure functions — Easiest to test, highest ROI
What NOT to Unit Test
- Framework internals (React rendering, Express routing)
- Simple getters/setters with no logic
- Third-party library behavior
- Implementation details (private methods, internal state)
Mocking Rules
| Dependency Type | Strategy | Example |
|---|---|---|
| Database | Mock the repository/DAO | jest.mock('./userRepo') |
| HTTP API | Mock the client or use MSW | msw.http.get('/api/users', ...) |
| File system | Mock fs or use temp dirs | jest.mock('fs/promises') |
| Time/Date | Fake timers | jest.useFakeTimers() |
| Randomness | Seed or mock | jest.spyOn(Math, 'random') |
| Environment | Override env vars | process.env.NODE_ENV = 'test' |
Rule: Mock at boundaries, not internals. If you're mocking a class you own, your design might need refactoring.
Coverage Targets
| Metric | Minimum | Good | Excellent |
|---|---|---|---|
| Line coverage | 70% | 85% | 95%+ |
| Branch coverage | 60% | 80% | 90%+ |
| Function coverage | 75% | 90% | 95%+ |
| Critical path coverage | 100% | 100% | 100% |
Warning: 100% coverage ≠ quality. Coverage measures what code ran, not what was verified. A test with no assertions has coverage but no value.
Phase 3: Integration Testing
API Testing Checklist
For every API endpoint, test:
endpoint: POST /api/orders
tests:
Установить QA & Testing Engine — Complete Software Quality System в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл QA & Testing Engine — Complete Software Quality System?
Before writing a single test, design the strategy.
Как установить скилл QA & Testing Engine — Complete Software Quality System?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл QA & Testing Engine — Complete Software Quality System запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic