001    package junit.runner;
002    
003    /**
004     * A listener interface for observing the
005     * execution of a test run. Unlike TestListener,
006     * this interface using only primitive objects,
007     * making it suitable for remote test execution.
008     */
009    public interface TestRunListener {
010        /* test status constants*/
011        int STATUS_ERROR = 1;
012        int STATUS_FAILURE = 2;
013    
014        void testRunStarted(String testSuiteName, int testCount);
015    
016        void testRunEnded(long elapsedTime);
017    
018        void testRunStopped(long elapsedTime);
019    
020        void testStarted(String testName);
021    
022        void testEnded(String testName);
023    
024        void testFailed(int status, String testName, String trace);
025    }