Observing JUnit test runs

The JDT JUnit plug-in defines an extension point that allows you to observe JUnit test runs and implement a reporting scheme in your plug-in. This extension point is useful if you are implementing test or build tools that must report the results of automated test runs.

To observe test runs, you must implement ITestRunListener.  This listener is notified when test runs are started and ended, and as individual tests are started and ended.  Failures are reported individually along with the stack trace at failure time.

Your listener is registered using the org.eclipse.jdt.junit.testRunListeners extension point.  Your plug-in's markup should supply the name of the listener class that implements ITestRunListener.

Copyright IBM Corporation and others 2000, 2003. All Rights Reserved.