| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="STYLESHEET" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title>Observing JUnit test runs</title> |
| <link rel="stylesheet" type="text/css" href="../book.css"> |
| </head> |
| <body> |
| <h2>Observing JUnit test runs</h2> |
| <p>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. </p> |
| <p>To observe test runs, you must implement <a href="../reference/api/org/eclipse/jdt/junit/ITestRunListener.html"><b>ITestRunListener</b></a>. |
| 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. </p> |
| <p>Your listener is registered using the <b><a href="../reference/extension-points/org_eclipse_jdt_junit_testRunListeners.html">org.eclipse.jdt.junit.testRunListeners</a></b> |
| extension point. Your plug-in's markup should supply the name of the |
| listener class that implements <a href="../reference/api/org/eclipse/jdt/junit/ITestRunListener.html"><b>ITestRunListener</b></a><b>.</b> </p> |
| </body> |
| </html> |