Skip to content

JUnitParams-1.0.4

Compare
Choose a tag to compare
@michal-lipski michal-lipski released this 26 Jan 10:23
· 158 commits to master since this release

Configurable test case name

New annotation @TestCaseName that can be used for test case name configuration:

  @Test
  @Parameters({ "1,1", "2,2" })
  @TestCaseName("factorial({0}) = {1}")
  public void custom_names_for_test_case(int argument, int result) { }

will produce tests with names:

factorial(1) = 1
factorial(2) = 2

Allow usage of enums as a data source

Parameters annotation now allows passing Enum values as parameters

@Parameters(source = Fruit.class)

Test results filtering fixed

When starting a single test method from within an IDE, the tests results were not shown up properly in the results tab.