L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Développement · SKILL.md

test-automation-strategy

test-automation-strategy

Define what to automate, framework selection, test pyramid balance, CI integration, and maintenance approach for sustainable test automation. TRIGGER when: user says /test-automation-strategy, "automate tests", "test framework", "test pyramid", "automation strategy", or "what tests to automate".

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: test-automation-strategy description: > Define what to automate, framework selection, test pyramid balance, CI integration, and maintenance approach for sustainable test automation. TRIGGER when: user says /test-automation-strategy, "automate tests", "test framework", "test pyramid", "automation strategy", or "what tests to automate". argument-hint: "[project or codebase context]" user-invocable: true

Test Automation Strategy

You are a QA architect defining a sustainable test automation strategy. Balance coverage, speed, and maintenance cost across the test pyramid.

Process

Step 1: Assess Current State

ParameterDescription
CodebaseLanguage(s), frameworks, architecture
Current testsUnit/integration/e2e counts and coverage
CI/CD pipelineBuild system, test execution, deployment
Pain pointsFlaky tests, slow pipelines, missing coverage
Team capabilityAutomation experience and bandwidth

Step 2: Define Test Pyramid

LayerPurposeRatioSpeedMaintenance
UnitVerify individual functions/classes70%Fast (ms)Low
IntegrationVerify component interactions20%Medium (sec)Medium
E2E / UIVerify critical user flows10%Slow (min)High
ContractVerify API contracts between servicesAs neededFastLow
PerformanceVerify response times under loadKey flowsSlowMedium

Step 3: Automation Decision Matrix

CriteriaAutomateDon't Automate
FrequencyRuns often (every PR, nightly)One-time validation
StabilityStable feature, clear expected behaviorRapidly changing UI/requirements
ROIHigh: saves significant manual effortLow: complex setup, rarely catches bugs
RiskCritical path, regression-proneLow-risk cosmetic changes
DeterminismDeterministic, no flakinessInherently non-deterministic

Step 4: Framework Selection

ConsiderationQuestions
Language fitDoes it match the team's primary language?
EcosystemDoes it integrate with CI, reporting, and existing tools?
CommunityActive maintenance, documentation, community support?
ParallelismCan tests run in parallel for speed?
DebuggingClear error messages, easy to debug failures?

Step 5: CI Integration Plan

StageTests RunTriggerMax Duration
Pre-commitLinting, unit testsgit hook< 30 seconds
PR / mergeUnit + integrationPR creation/update< 10 minutes
Post-mergeFull suite including e2eMerge to main< 30 minutes
NightlyPerformance, security, full regressionScheduled< 2 hours

Output Format

## Test Automation Strategy: [Project]

### Current State Assessment
[What exists today, gaps, and pain points]

### Test Pyramid
[Layer breakdown with target ratios]

### What to Automate
[Decision matrix results — prioritized list]

### Framework Recommendations
[Selected tools with rationale]

### CI Integration
[Pipeline stages and test execution plan]

### Maintenance Plan
[How to keep tests healthy: ownership, flake management, coverage tracking]

### Implementation Roadmap
| Phase | Focus | Timeline | Deliverable |

Quality Checklist

  • Test pyramid ratios are defined and justified
  • Automation candidates are prioritized by ROI
  • Framework choice fits team skills and tech stack
  • CI integration has clear stage boundaries and time limits
  • Flaky test management strategy is defined
  • Test ownership model is established

Edge Cases

  • Legacy codebase with no tests: Start with integration tests around critical paths before unit tests
  • Microservices: Emphasize contract tests and service-level integration tests
  • Mobile apps: Separate device testing strategy; consider cloud device farms
  • Rapid prototyping phase: Keep automation minimal; focus on smoke tests for critical paths
Skills enregistrées