java - Junit test suite execution programatically -


i want build tool in java, can see progress of junit test suite execution. below.

1) current executing class. 2) how many test cases completed(passed, failed)? 3) how many test cases pending?

from information, want build graphical report.

any ideas on how start?

the preferred external facade seems junitcore, offers series of useful run(...) overloads. call junitcore.addlistener runlistener implementation , should able notifications need.

note total number of test cases pending may not easy ahead of time; test count available part of description object default junit doesn't seem create runners , descriptions until before run.