1 package junit.runner;
2 /**
3  * A listener interface for observing the
4  * execution of a test run. Unlike TestListener,
5  * this interface using only primitive objects,
6  * making it suitable for remote test execution.
7  * {@hide} - Not needed for 1.0 SDK
8  */
9  public interface TestRunListener {
10      /* test status constants*/
11      public static final int STATUS_ERROR= 1;
12      public static final int STATUS_FAILURE= 2;
13 
testRunStarted(String testSuiteName, int testCount)14      public void testRunStarted(String testSuiteName, int testCount);
testRunEnded(long elapsedTime)15      public void testRunEnded(long elapsedTime);
testRunStopped(long elapsedTime)16      public void testRunStopped(long elapsedTime);
testStarted(String testName)17      public void testStarted(String testName);
testEnded(String testName)18      public void testEnded(String testName);
testFailed(int status, String testName, String trace)19      public void testFailed(int status, String testName, String trace);
20 }
21