Ant uses the core JUnit Runner which comes with the JUnit jar file.
Essentially, in the junit jar file is the code to find and execute
test cases based on the JUnit standard. You can get the source code
for JUnit from Kent Beck's git repository:
git clone
http://github.com/KentBeck/junit.git
It looks like it was set up to build using Maven. So the source code
is located in src/main/java. The class which runs the test cases is
org.junit.runner.JUnitCore. So you can find it in src/main/java/org/
junit/runner. If you look at the source you can see it takes no
command line options and just finds and executes the test cases.
If you look at the JavaDocs for JUnit (
http://kentbeck.github.com/
junit/javadoc/latest/), you'll see the org.junit.runner package has a
RunWith class. You can use the RunWith annotation to make JUnit use a
custom runner for each test case. You'd have to modify your test cases
to have the @RunWith annotation but things like Ant would
automatically use the custom runner if done correctly.
The other options are to look at the JUnit runner and modify it,
leave the information in there and write a custom display program to
display it without the stack trace or run the reports through a
transformer to remove the stack trace.
To add a description to each test case might limit your options.
Removing or hiding the stack trace can be done without altering the
runner but adding information would probably mean an annotation on the
test case which you want added to the report. This would require
modifying the runner or creating a custom runner. Not as clean but you
could have a transformer program that removes the stack trace from the
reports and scans the test case files for tags, much like javadoc
scans comments for tags, which could be added to the report as custom
tags.
Bottom line, you are going to have to do a little coding or get
something from someone who has added to the core junit.