unit-test-parameterized
CommunityEfficiently test code with multiple inputs.
AuthorMassimilianoPili
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines the process of writing unit tests by allowing you to run the same test logic with various input values, significantly reducing code duplication and improving test coverage.
Core Features & Use Cases
- Parameterized Tests: Execute a single test method with multiple sets of arguments.
- Data Sources: Supports various data sources like
@ValueSource,@CsvSource,@MethodSource, and@EnumSource. - Use Case: When testing a validation function that needs to check numerous valid and invalid email formats, use
@CsvSourceto provide each email and its expected validity result to a single test method.
Quick Start
Use the unit-test-parameterized skill to write a parameterized JUnit 5 test using @ValueSource with strings "apple", "banana", and "cherry".
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-parameterized Download link: https://github.com/MassimilianoPili/claude-code-config/archive/main.zip#unit-test-parameterized 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 223,000+ vetted skills library on demand.