Possible Duplicate:
Change test name of parameterized tests?
I have a JUnit 4 test case class that uses the Parameterized
style. Everything runs as expected. My one complaint is that the JUnit view tab in Eclipse displays the test run like so:
[0] (0.999 s)
executeTest[0] (0.999 s)
[1] (0.123 s)
executeTest[1] (0.123 s)
[2] (0.666 s)
executeTest[2] (0.666 s)
and so on...
How can I modify either the test case class and/or my Eclipse configuration such that the test number (the [0], [1], etc.) instead displays a useful label string that I supply (perhaps from the parameterized data)?
I'm using JUnit 4.8