Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates data-driven JUnit 5 Java tests using @ParameterizedTest with @ValueSource, @CsvSource, @MethodSource and @EnumSource.
Use this skill ↓86% 91%+5 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 19 of 22 without it.
3 of 3 safety checks passed
Not used yet
Provides patterns for parameterized unit tests in Java using JUnit 5. Covers @ValueSource, @CsvSource, @MethodSource, @EnumSource, @ArgumentsSource, and custom display names. Reduces test duplication by running the same test logic with multiple input values.
junit-jupiter-params is on test classpath (included in junit-jupiter)@ValueSource for simple values, @CsvSource for tabular data, @MethodSource for complex objectsname = "{0}..." for readable output./gradlew test --info or mvn test and verify all parameter combinations executeJUnit 5 parameterized tests require junit-jupiter (includes params). Add assertj-core for assertions:
<!-- Maven -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
// Gradle
testImplementation("org.junit.jupiter:junit-jupiter")
Next to this one in the catalogue, plus popular skills in the same category.