testing-patterns

Codify TDD workflows, test pyramids, and anti-pattern guidance for testing practices.

16|4|Updated Feb 10, 2024
One-click install
npx skills add https://github.com/LetPeopleWork/Lighthouse --skill testing-patterns-letpeoplework
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-patterns
Source: https://github.com/LetPeopleWork/Lighthouse/tree/main/.github/.github/agents/skills/testing-patterns
Command: npx skills add https://github.com/LetPeopleWork/Lighthouse --skill testing-patterns-letpeoplework

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill standardizes testing patterns across projects, reducing ambiguity in how tests are written and reviewed, and accelerating onboarding for new developers.

Core Features & Use Cases

  • TDD guidance: mandates test-first development for new features and provides structure for writing failing tests, passing tests, and refactoring.
  • Test pyramid clarity: defines unit, integration, and end-to-end testing roles and recommended proportions.
  • Anti-patterns & gate rules: highlights common traps (over-mocking, testing mocks, incomplete mocks) and practical remedies.
  • Quality and coverage focus: outlines coverage targets, naming conventions, and review checklists for test quality.
  • Reference material: points to in-depth docs and references to expand the team's practice.

Quick Start

Load this skill when starting a testing initiative or designing a test strategy. Use it to guide test planning, code reviews, and test-suite design, then apply the patterns to your project to improve reliability and speed.

Frequently Asked Questions about testing-patterns

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

FAQPage Schema
How do I standardize test pyramid proportions for unit, integration, and E2E tests?

Standardizing test pyramid proportions involves defining distinct roles for unit, integration, and end-to-end tests. This skill provides structured guidance and recommended proportions to balance your test suite, ensuring reliable coverage without excessive E2E overhead.

What is the TDD workflow for new feature development?

The TDD workflow for new features mandates a test-first approach. This skill provides structure for writing failing tests, implementing passing tests, and refactoring, ensuring quality assurance is built into the development cycle from the start.

How do I avoid over-mocking and testing mocks in my unit tests?

Avoiding over-mocking requires recognizing anti-patterns like testing mocks or leaving incomplete mocks. This skill highlights these common traps and provides practical remedies and gate rules to ensure your mocking strategies maintain test quality.

Can I use this to define test coverage targets and code review checklists?

Yes, you can use this to define test coverage targets and code review checklists. It outlines specific coverage goals, naming conventions, and review standards that teams can apply directly to evaluate test quality during feature reviews.

When do I need standardized testing patterns for my software engineering team?

You need standardized testing patterns when ambiguity slows down development and onboarding. This skill reduces ambiguity in how tests are written and reviewed, accelerating onboarding for new developers and ensuring consistent quality assurance across projects.