Skip to content
Skills Library
Programming · Testing

alpha-core:testing-patterns

/alpha-core:testing-patterns

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.

Licence
MIT
Last repository change
24.07.2026

Assessment and security

80/ 100Class: good
Format15 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
8
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

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.

Original author description

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 it works

  1. Core Principles
  2. When to Load References
Original SKILL.md headings · 33 lines, 196 words
SKILL.md preview
---
name: alpha-core:testing-patterns
description: 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.
allowed-tools: Read, Grep, Glob, Bash
---

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

## Core Principles
- Test behavior, not implementation
- Follow the test pyramid: many unit tests, fewer integration, minimal E2E
- Measure coverage to find gaps, not as a vanity metric (80% minimum threshold)
- Always isolate tests — no shared mutable state, no ordering dependencies
- Fix flaky tests within one sprint or remove them; quarantine with a ticket

## 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.
Files in this package (8)
  • SKILL.md 2 KB
  • references/advanced-techniques.md 4 KB
  • references/frameworks-runners.md 5 KB
  • references/frameworks-tooling.md 6 KB
  • references/integration-e2e.md 4 KB
  • references/mocking-test-data.md 4 KB
  • references/testing-pyramid.md 3 KB
  • references/unit-testing.md 5 KB

Versions

The database has no other skills named alpha-core:testing-patterns.

Database snapshot: 13.11.2026 · package version 024ae3de5eff (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100testing-ops
    Cross-language testing strategies and patterns. Triggers on: test pyramid, unit test, integration test, e2e test, TDD, BDD, test coverage, mocking strategy, test doubles, test isolation.
  • 100testing-patterns
    Unit and integration test patterns - pyramid, AAA, mocking, test data, suite runs; use when writing or running tests.
  • 100testing
    Comprehensive software testing skill covering unit tests, integration tests, TDD/BDD, mocking strategies, and test automation across multiple languages. Use this skill when writing test cases, designing test strategies, implementing test automation, or need guidance on testing…
  • 95pact-testing-strategies
    Testing strategies, test pyramid guidance, and quality assurance patterns for PACT Test phase. Use when: designing test suites, implementing unit tests, integration tests, E2E tests, performance testing, security testing, or determining test coverage priorities. Triggers on:…
  • 100testing
    TDD/BDD testing principles. Use when writing tests, reviewing test coverage, setting up testing, or discussing test strategy and test architecture.
  • 90test-strategy
    Test strategy patterns — TDD, BDD, testing pyramid, coverage strategy, test prioritization, test data management, factories, fixtures, mutation testing. Use when defining quality approach, planning test suites, setting coverage targets, structuring test layers, or establishing…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.