Registry / testing / junitparams

junitparams

JSON →
library1.1.1javamavenunverified

Better parameterised tests for JUnit, providing a simpler and more readable way to write parameterized tests.

<dependency> <groupId>pl.pragmatists</groupId> <artifactId>JUnitParams</artifactId> <version>1.1.1</version> </dependency>
INSTALL
IMPORT
SIG · JUNITPARAMS
J
junitparams
testingjavav1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JUnitParamsRunner
pl.pragmatists.JUnitParamsRunner

Write parameterized JUnit tests using JUnitParams.

import pl.pragmatists.JUnitParamsRunner; import pl.pragmatists.junitparams.Parameters; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(JUnitParamsRunner.class) public class ParamTest { @Test @Parameters({"1,2", "3,4"}) public void test(int a, int b) { // test with parameters } }
Debug
Known issues
breakingJUnitParams is not compatible with JUnit 5; use JUnit 4 or migrate to JUnit 5's built-in parameterized tests.
fix
Use JUnit 4 or switch to org.junit.jupiter.params.ParameterizedTest for JUnit 5.
affects: all
Upgrade
Version history
1.1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
junitparams — mvn dependency:get junitparams · libregistry