Radberi-TestingAntiPatterns
CommunityWrite reliable tests by avoiding anti-patterns
AuthorShade666
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Tests can drift into mocking real behaviour or polluting production with test-only methods; this Skill helps prevent those anti-patterns.
Core principle: Test what the code does, not what the mocks do.
Following strict TDD prevents these anti-patterns.
Core Features & Use Cases
- Guidance on avoiding test-only methods, mocking pitfalls, and excessive mocks.
- Real-world anti-pattern examples with fixes to improve test quality and maintainability.
- Use Case: when writing or refactoring tests to ensure realistic verification and isolation.
Quick Start
Review your tests to ensure you validate real behaviour rather than mock behaviour and remove assertions that only check mocks.
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: Radberi-TestingAntiPatterns Download link: https://github.com/Shade666/huml-dotnet/archive/main.zip#radberi-testingantipatterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.