junit5-jupiter-starter-gradle @ParameterizedTest name not displaying
Closed this issue · 2 comments
naresh-gn commented
I just checkout this repo and ran junit5-jupiter-starter-gradle project using ./gradlew test and got below output
CalculatorTests > 1 + 1 = 2 PASSED
CalculatorTests > add(int, int, int) > com.example.project.CalculatorTests.add(int, int, int)[1] PASSED
CalculatorTests > add(int, int, int) > com.example.project.CalculatorTests.add(int, int, int)[2] PASSED
CalculatorTests > add(int, int, int) > com.example.project.CalculatorTests.add(int, int, int)[3] PASSED
CalculatorTests > add(int, int, int) > com.example.project.CalculatorTests.add(int, int, int)[4] PASSED
bottom 4 tests in the above output uses @ParameterizedTest(name = "{0} + {1} = {2}") expected test name output should be in the form of "{0} + {1} = {2}" instead it displays method name.
naresh-gn commented
Java version
openjdk version "18.0.2" 2022-07-19
OpenJDK Runtime Environment Homebrew (build 18.0.2+0)
OpenJDK 64-Bit Server VM Homebrew (build 18.0.2+0, mixed mode, sharing)
sbrannen commented
Gradle does not provide support for custom display names.
Related Issues
In light of that, I'm closing this issue.