testing-anti-patterns
CommunityAvoid common testing pitfalls, write effective tests.
Software Engineering#testing#software engineering#best practices#anti-patterns#TDD#mocks#test quality
AuthorAJBcoding
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Developers often fall into common traps when writing tests, such as testing mock behavior instead of real code, polluting production with test-only methods, or creating incomplete mocks. This skill identifies and helps avoid these anti-patterns, leading to more robust and reliable test suites.
Core Features & Use Cases
- Anti-Pattern Identification: Clearly defines and illustrates common testing anti-patterns like testing mock behavior, test-only methods in production, and mocking without understanding.
- Gate Functions & Fixes: Provides "gate functions" to pause and question problematic testing approaches, offering concrete fixes for each anti-pattern.
- TDD Integration: Explains how following Test-Driven Development (TDD) naturally prevents many of these anti-patterns, promoting better testing habits.
- Use Case: When reviewing a test suite or encountering flaky tests, use this skill to identify and correct anti-patterns, ensuring tests verify real behavior and provide true confidence.
Quick Start
I'm reviewing a test. Does this test for mock behavior or real component behavior?
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: testing-anti-patterns Download link: https://github.com/AJBcoding/career-lexicon-builder/archive/main.zip#testing-anti-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.