I have a set of JUnit Test Cases and I execute them from ANT using the junit task. While executing the tests, in the console I get to see only which test case (i.e. Java cla
You can make use of the TestName rule. Just add the following code to your test class:
TestName
@Rule public TestName testName = new TestName(); @Before public void printTestMethod() { System.out.println("Running " + testName.getMethodName()); }