testing-patterns

Generate test suites with AAA patterns and mock strategies across unit, integration, and E2E levels.

Updated Feb 19, 2026
One-click install
npx skills add https://github.com/jonnathan-ls/ai-context-kit --skill testing-patterns-jonnathan-ls
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-patterns
Source: https://github.com/jonnathan-ls/ai-context-kit/tree/main/skills/testing-patterns
Command: npx skills add https://github.com/jonnathan-ls/ai-context-kit --skill testing-patterns-jonnathan-ls

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Helps users write tests, design test suites, choose between unit/integration/E2E testing, fix flaky tests, set up mocking, and improve test coverage.

Core Features & Use Cases

  • AAA Pattern templates and example scaffolds for Arrange/Act/Assert across unit/integration/E2E tests.
  • Test Type Guidance: decision framework for when to use unit, integration, or E2E tests.
  • Mocking & Test Data: recommended strategies and templates for fixtures, mocks, and data generation.
  • Anti-pattern detection: flags common testing anti-patterns and best practices.

Quick Start

Describe your project's testing goals and desired test types, and the skill will generate a tailored testing plan.

Frequently Asked Questions about testing-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between unit, integration, and E2E testing for my project?

Choosing between unit, integration, and E2E testing depends on your application scope. This skill provides a decision framework to select the appropriate test type, ensuring reliable coverage across frontend, backend, and library code.

What is the AAA pattern for writing reliable test suites?

The AAA pattern structures tests into Arrange, Act, and Assert phases. This skill enforces the AAA pattern with concrete templates and scaffolds to help you write clear, maintainable tests across all testing levels.

How do I set up mocking and test data fixtures for backend and frontend code?

Setting up mocking and test data fixtures requires clear strategies for data generation. This skill provides templates and mock strategies for frontend, backend, and library code to ensure isolated and reliable test execution.

Why are my integration tests flaky and how do I fix them?

Flaky integration tests often stem from improper data setup or testing anti-patterns. This skill detects common anti-patterns, enforces strict mock strategies, and provides robust templates to fix flaky tests and stabilize your suite.

What are common test automation anti-patterns I should avoid?

Common test automation anti-patterns include poor mock strategies and broken AAA structures. This skill flags these anti-patterns and offers best practices with concrete examples to help you avoid them and maintain reliable test suites.