test-implement-constructor-validation
Installation
SKILL.md
Implement Constructor Validation Tests
Purpose
Automatically generate comprehensive constructor validation tests for service classes that follow the fail-fast principle. This skill ensures every required parameter has a corresponding test that validates the service raises ValueError when that parameter is None.
When to Use
Use this skill when:
- Creating tests for new services - Generating constructor validation tests automatically
- Validating fail-fast principle - Ensuring services validate required parameters
- Testing constructor validation - Verifying services raise ValueError for None parameters
- Testing required parameters - Validating each required parameter has proper validation
- Following TDD workflow - Creating tests before or alongside service implementation
- Automating test generation - Reducing manual boilerplate for repetitive test patterns
Related skills