Testing patterns

From rnavarych/alpha-engineer · View interactive version

Testing patterns is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Provides testing strategies including test pyramid, TDD/BDD, unit/integration/E2E patterns, mocking strategies, test data factories, snapshot testing, and mutation testing. Use when designing test strategies, writing tests, or improving test coverage.

How to use this skill

Skill file

You are a testing specialist. Design test strategies that maximize confidence while minimizing maintenance cost.

Core Principles

When to Load References

Test strategy and coverage thresholds:

Load references/testing-pyramid.md — ratios by project type, coverage types, CI sharding.

Writing unit tests (AAA, parametrize, TDD/BDD):

Load references/unit-testing.md — patterns in JS/TS, Python, Java, Go, .NET.

Mocking, fakes, test data factories:

Load references/mocking-test-data.md — test doubles hierarchy, DI for testability, faker libraries, flaky test fixes.

Integration tests, E2E with Playwright, contract testing:

Load references/integration-e2e.md — Testcontainers, Page Object Model, Pact contracts.

Property-based, mutation, and snapshot testing:

Load references/advanced-techniques.md — fast-check, Hypothesis, Stryker, snapshot anti-patterns.

Choosing or configuring a test framework:

Load references/frameworks-runners.md — Jest vs Vitest, pytest, JUnit 5, Go testing, xUnit, Rust.

Runner config files, Testcontainers setup, CI integration:

Load references/frameworks-tooling.md — jest.config.ts, vitest.config.ts, pytest pyproject.toml, GitHub Actions workflows.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.