MCP HubMCP Hub
스킬 목록으로 돌아가기

test-automation-strategy

proffesor-for-testing
업데이트됨 Today
445 조회
267
56
267
GitHub에서 보기
기타automationtest-pyramidpage-objectfirst-principlesci-cdflaky-tests

정보

이 Claude Skill은 테스트 피라미드, 페이지 오브젝트 모델과 같은 디자인 패턴, CI/CD 통합을 적용하여 효과적인 테스트 자동화 프레임워크를 설계하고 구현하는 데 개발자를 지원합니다. 자동화 프레임워크 구축이나 테스트 효율성 향상 시 안티패턴을 감지하고 견고한 테스트를 보장하기 위해 사용됩니다. 본 스킬은 테스트 생성, 실행, 커버리지 분석, 플레이키 테스트 탐지를 위한 전문 에이전트를 활용합니다.

빠른 설치

Claude Code

추천
기본
npx skills add proffesor-for-testing/agentic-qe
플러그인 명령대체
/plugin add https://github.com/proffesor-for-testing/agentic-qe
Git 클론대체
git clone https://github.com/proffesor-for-testing/agentic-qe.git ~/.claude/skills/test-automation-strategy

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

Test Automation Strategy

<default_to_action> When designing or improving test automation:

  1. DETECT anti-patterns: Ice cream cone? Slow suite? Flaky tests?
  2. USE patterns: Page Object Model, Builder pattern, Factory pattern
  3. INTEGRATE in CI/CD: Every commit runs tests, fail fast
  4. MANAGE flaky tests: Quarantine, fix, or delete - never ignore

Quick Anti-Pattern Detection:

  • Ice cream cone (many E2E, few unit) → Invert to pyramid
  • Slow tests (> 10 min suite) → Parallelize, mock external deps
  • Flaky tests → Fix timing, isolate data, or quarantine
  • Brittle selectors → Use data-testid, semantic locators </default_to_action>

Quick Reference Card

When to Use

  • Building new automation framework
  • Improving existing test efficiency
  • Reducing flaky test burden
  • Optimizing CI/CD pipeline speed

Anti-Patterns to Detect

ProblemSymptomFix
Ice cream cone80% E2E, 10% unitInvert pyramid
Slow suite30+ min CIParallelize, prune
Flaky testsRandom failuresQuarantine, fix timing
Coupled testsOrder-dependentIsolate data
Brittle selectorsBreak on CSS changeUse data-testid

CI/CD Integration

name: Test Pipeline
on: [push, pull_request]

jobs:
  unit-tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npm run test:unit -- --coverage
        timeout-minutes: 5
      - uses: codecov/codecov-action@v3

  integration-tests:
    needs: unit-tests
    runs-on: ubuntu-latest
    services:
      postgres:
        image: postgres:15
    steps:
      - run: npm run test:integration
        timeout-minutes: 10

  e2e-tests:
    needs: integration-tests
    runs-on: ubuntu-latest
    steps:
      - run: npx playwright test
        timeout-minutes: 15

Flaky Test Management

// Quarantine flaky tests
describe.skip('Quarantined - INC-123', () => {
  test('flaky test awaiting fix', () => { /* ... */ });
});

// Agent-assisted stabilization
await Task("Fix Flaky Tests", {
  tests: quarantinedTests,
  analysis: ['timing-issues', 'data-isolation', 'race-conditions'],
  strategies: ['add-waits', 'isolate-fixtures', 'mock-externals']
}, "qe-flaky-test-hunter");

Agent-Assisted Automation

// Generate tests following pyramid
await Task("Generate Test Suite", {
  sourceCode: 'src/',
  pyramid: { unit: 70, integration: 20, e2e: 10 },
  patterns: ['page-object', 'builder', 'factory'],
  framework: 'jest'
}, "qe-test-generator");

// Optimize test execution
await Task("Optimize Suite", {
  algorithm: 'johnson-lindenstrauss',
  targetReduction: 0.3,
  maintainCoverage: 0.95
}, "qe-regression-risk-analyzer");

// Analyze flaky patterns
await Task("Flaky Analysis", {
  testHistory: 'last-30-days',
  detectPatterns: ['timing', 'data', 'environment'],
  recommend: 'stabilization-strategy'
}, "qe-flaky-test-hunter");

Agent Coordination Hints

Memory Namespace

aqe/automation/
├── test-pyramid/*        - Coverage by layer
├── page-objects/*        - Shared page objects
├── flaky-registry/*      - Quarantined tests
└── execution-metrics/*   - Suite performance data

Fleet Coordination

const automationFleet = await FleetManager.coordinate({
  strategy: 'test-automation',
  agents: [
    'qe-test-generator',         // Generate pyramid-compliant tests
    'qe-test-executor',          // Parallel execution
    'qe-coverage-analyzer',      // Coverage gaps
    'qe-flaky-test-hunter',      // Flaky detection
    'qe-regression-risk-analyzer' // Smart selection
  ],
  topology: 'hierarchical'
});

Related Skills


Remember

With Agents: Agents generate pyramid-compliant tests, detect flaky patterns, optimize execution time, and maintain test infrastructure. Use agents to scale automation quality.

Gotchas

  • Agent generates 80% E2E tests and 20% unit tests (inverted pyramid) — explicitly enforce 70/20/10 ratio
  • Page Object Model tests become brittle when selectors change — prefer data-testid attributes over CSS selectors
  • Flaky tests quarantined but never fixed is technical debt — set a 2-week SLA to fix or delete
  • Agent treats test code as second-class — test code needs the same review standards as production code
  • Parallel test execution requires test isolation — shared state between tests causes non-deterministic failures

GitHub 저장소

proffesor-for-testing/agentic-qe
경로: .claude/skills/test-automation-strategy
agenticqeagenticsfoundationagentsquality-engineering

연관 스킬

content-collections

메타

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

스킬 보기

sglang

메타

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

스킬 보기

cloudflare-turnstile

메타

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

스킬 보기

cloudflare-cron-triggers

테스팅

This skill provides comprehensive knowledge for implementing Cloudflare Cron Triggers to schedule Workers using cron expressions. It covers setting up periodic tasks, maintenance jobs, and automated workflows while handling common issues like invalid cron expressions and timezone problems. Developers can use it for configuring scheduled handlers, testing cron triggers, and integrating with Workflows and Green Compute.

스킬 보기