title: How to print current executing JUnit test method while running all tests in a class or suite using ANT?
body: <p>I have a set of JUnit Test Cases and I execute them from ANT using the <a href="http://ant.apache.org/manual/Tasks/junit.html" rel="nofollow noreferrer">junit</a> task. While executing the tests, in the console I get to see only which test case (i.e. Java class) is currently running, but not the test method. Is there a way I can print the current executing test method? Or is there any other way to do this other than having my own JUnit test runner?</p>
  
  <p>Sample Console Output</p>
  
  <pre><code>[junit] Running examples.TestCase1
  [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 2.835 sec
  </code></pre>
  
  <p>Instead I wish to get the output like</p>
  
  <pre><code>[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
  </code></pre>