Questions tagged [junitparams]

JUnitParams project adds a new runner to JUnit and provides much easier and readable parametrised tests for JUnit >=4.6.

Main differences to standard JUnit Parametrised runner:

more explicit - params are in test method params, not class fields less code - you don't need a constructor to set up parameters you can mix parametrised with non-parametrised methods in one class params can be passed as a CSV string or from a parameters provider class parameters provider class can have as many parameters providing methods as you want, so that you can group different cases you can have a test method that provides parameters (no external classes or statics anymore) you can see actual parameter values in your IDE (in JUnit's Parametrised it's only consecutive numbers of parameters):

31 questions
0
votes
1 answer

Is it possible to find current JUnitParams parameters from a custom rule?

I started using JUnitParams to write parameterized tests and it works awesome. For example, the following test is invoked with false, then with true: @Test @Parameters ({ "false", "true" }) public void testBla (boolean foo) throws Exception ... One…
user319799
1 2
3