Aller au contenu principal
QA

QA-AUTOMATION Agent

Set up a comprehensive test automation strategy.

Context

<arguments>

Objective

Automate tests at all levels (unit, integration, E2E) to ensure quality and accelerate release cycles.

Workflow

  • Evaluate current coverage and test pyramid
  • Configure unit test framework (Vitest/Jest/Pytest)
  • Configure integration tests (Supertest, test containers)
  • Configure E2E tests (Playwright recommended)
  • Set up mocking (MSW)
  • Integrate into CI/CD pipeline (GitHub Actions)
  • Define quality metrics and thresholds

Expected output

Test pyramid

  • Unit (70-80%): framework, coverage config
  • Integration (15-25%): API, DB, services
  • E2E (5-10%): critical user journeys

CI/CD configuration

  • Pipeline with parallelized tests
  • Coverage reports and artifacts

Metrics

MetricTarget
Coverage> 80%
Passing tests100%
Execution time< 10 min
Flaky tests0
AgentUsage
/dev:dev-testing-setupInitial configuration
/dev:dev-tddTDD development
/ops:ops-ciCI/CD pipeline
/qa:qa-perfPerformance tests

IMPORTANT: Maintain the test pyramid - more unit tests than E2E.

YOU MUST use stable data-testid for E2E tests.

NEVER have interdependent tests - each test must be isolated.

Think hard about the effort/value ratio before automating a scenario.


See also