I have a set of JUnit Test Cases and I execute them from ANT using the junit task. While running tests in the console, I see only which test case (java class) is running, but not the testing method. Is there a way to print the current test method? Or is there any other way to do this differently than having your own JUnit test runner?
Console Output Example
[junit] Running examples.TestCase1
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 2.835 sec
Instead, I want to get a result like
[junit] Running examples.TestCase1
[junit] Running examples.TestCase1.test1
[junit] Running examples.TestCase1.test2
[junit] Running examples.TestCase1.test3
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 2.835 sec
source
share