You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can currently annotate the test methods with @TestCaseName("[{index}] {1}, {2} -> {4}") but IntelliJ shows the test case name as MyTestClass.[0] 7, hello -> 3.14. The class name should be optional in the same way as the method name with {method}.
Example code:
@RunWith(JUnitParamsRunner.class)
public class MyTestClass {
@Test
@Parameters(method = "data")
@TestCaseName("[{index}] {1}, {2} -> {4}")
public void paramsInNamedMethod(int i, int j, String p1, int k, double p2) {
Assert.assertTrue(p2 < 4);
}
private static Object[] data() {
return new Object[]{0, 7, "hello", 0, 3.14};
}
}
The text was updated successfully, but these errors were encountered:
We can currently annotate the test methods with
@TestCaseName("[{index}] {1}, {2} -> {4}")
but IntelliJ shows the test case name asMyTestClass.[0] 7, hello -> 3.14
. The class name should be optional in the same way as the method name with{method}
.Example code:
The text was updated successfully, but these errors were encountered: