unit-test-tatsujin
CommunityMaster unit testing principles.
Authorkazuph
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a comprehensive guide to writing effective, maintainable, and valuable unit tests, ensuring code quality and robustness.
Core Features & Use Cases
- Defines Unit Testing: Clarifies the core principles of what constitutes a good unit test (small scope, fast execution, isolation).
- Outlines Testing Pillars: Details the four essential pillars: protection against regression, refactoring resilience, rapid feedback, and ease of maintenance.
- Specifies Mocking/Stubbing: Provides clear guidelines on when and how to use mocks and stubs, emphasizing verification of observable behavior over implementation details.
- Enforces Test Structure: Mandates the AAA (Arrange, Act, Assert) pattern for clear and organized test methods.
- Sets Naming Conventions: Establishes a clear, descriptive naming convention for test methods.
- AI-Specific Guidelines: Includes explicit prohibitions for AI agents to prevent common anti-patterns in test generation.
- Use Case: When designing tests for a new feature, consult this Skill to ensure the tests align with best practices, are easy to understand, and provide maximum value in protecting against future bugs.
Quick Start
Follow the unit-test-tatsujin skill's guidelines to write a new unit test for the user authentication module.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: unit-test-tatsujin Download link: https://github.com/kazuph/dotfiles/archive/main.zip#unit-test-tatsujin 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.