Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

QA & Testing Engine — Complete Software Quality System

БесплатноБез исполняемых скриптовНе проверен

Before writing a single test, design the strategy.

modbenderот 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 100
  • UserService throws NotFoundError when user ID is invalid
  • parseDate returns null for malformed ISO strings

❌ Bad:

  • test1, should work, calculates price

What to Unit Test (Priority Order)

  1. Business logic — Pricing, rules, calculations, state machines
  2. Data transformations — Parsers, formatters, serializers, mappers
  3. Edge cases — Boundaries, null/undefined, empty collections, overflow
  4. Error handling — Every catch block, every validation path
  5. 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:
Полный SKILL.md на GitHub

Установить QA & Testing Engine — Complete Software Quality System в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить QA & Testing Engine — Complete Software Quality System с