test-doubles

Official

Master xUnit test patterns & doubles

AuthorObjective-Arts
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers write more maintainable, reliable, and understandable tests by applying established xUnit patterns and understanding the nuances of test doubles.

Core Features & Use Cases

  • Test Double Taxonomy: Learn when to use Dummies, Stubs, Spies, Mocks, and Fakes.
  • Test Patterns: Implement the Four-Phase Test, Fresh Fixture, and Minimal Fixture patterns.
  • Test Smells: Identify and refactor common anti-patterns like Fragile, Obscure, and Eager tests.
  • Use Case: When writing a new test, consult the Test Double Taxonomy to select the most appropriate type of test double, ensuring your test is effective and maintainable.

Quick Start

Explain the difference between a test stub and a test mock.

Dependency Matrix

Required Modules

None required

Components

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: test-doubles
Download link: https://github.com/Objective-Arts/lens-dist/archive/main.zip#test-doubles

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.