MCP HubMCP Hub
Zurück zu Fähigkeiten

test-automation-strategy

proffesor-for-testing
Aktualisiert Today
433 Ansichten
267
56
267
Auf GitHub ansehen
Andereautomationtest-pyramidpage-objectfirst-principlesci-cdflaky-tests

Über

Dieses Claude Skill unterstützt Entwickler beim Entwerfen und Implementieren effektiver Testautomatisierungs-Frameworks durch Anwendung der Testpyramide, von Designmustern wie dem Page Object Model und CI/CD-Integration. Es wird beim Aufbau von Automatisierungsframeworks oder zur Verbesserung der Testeffizienz eingesetzt, um Anti-Patterns zu erkennen und robustes Testen sicherzustellen. Das Skill nutzt spezialisierte Agenten für Testgenerierung, -ausführung, Coverage-Analyse und die Erkennung flaky Tests.

Schnellinstallation

Claude Code

Empfohlen
Primär
npx skills add proffesor-for-testing/agentic-qe
Plugin-BefehlAlternativ
/plugin add https://github.com/proffesor-for-testing/agentic-qe
Git CloneAlternativ
git clone https://github.com/proffesor-for-testing/agentic-qe.git ~/.claude/skills/test-automation-strategy

Kopieren Sie diesen Befehl und fügen Sie ihn in Claude Code ein, um diese Fähigkeit zu installieren

Dokumentation

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 Repository

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

Verwandte Skills

content-collections

Meta

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.

Skill ansehen

sglang

Meta

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.

Skill ansehen

cloudflare-turnstile

Meta

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.

Skill ansehen

cloudflare-cron-triggers

Testen

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.

Skill ansehen