ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/proposal/sandbox/junit/src/main/org/apache/tools/ant/taskdefs/optional/junit/remote TestRunner.java
Date Sun, 27 Jan 2002 18:29:57 GMT
sbailliez    02/01/27 10:29:57

  Modified:    proposal/sandbox/junit/src/main/org/apache/tools/ant/taskdefs/optional/junit/remote
                        TestRunner.java
  Log:
  - Add additional log statements
  
  Revision  Changes    Path
  1.6       +5 -0      jakarta-ant/proposal/sandbox/junit/src/main/org/apache/tools/ant/taskdefs/optional/junit/remote/TestRunner.java
  
  Index: TestRunner.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/junit/src/main/org/apache/tools/ant/taskdefs/optional/junit/remote/TestRunner.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestRunner.java	14 Jan 2002 23:12:25 -0000	1.5
  +++ TestRunner.java	27 Jan 2002 18:29:57 -0000	1.6
  @@ -308,6 +308,7 @@
               if (suites[i] instanceof TestCase) {
                   suites[i] = new TestSuite(suites[i].getClass().getName());
               }
  +            log("running suite: " + suites[i]);
               suites[i].run(testResult);
           }
   
  @@ -382,10 +383,12 @@
   
       public void startTest(Test test) {
           String testName = test.toString();
  +        log("starting test: " + test);
           writer.notifyTestStarted(testName);
       }
   
       public void addError(Test test, Throwable t) {
  +        log("Adding error for test: " + test);
           String testName = test.toString();
           String trace = StringUtils.getStackTrace(t);
           writer.notifyTestFailed(TestRunListener.STATUS_ERROR, testName, trace);
  @@ -404,12 +407,14 @@
        * @see addFailure(Test, AssertionFailedError)
        */
       public void addFailure(Test test, Throwable t) {
  +        log("Adding failure for test: " + test);
           String testName = test.toString();
           String trace = StringUtils.getStackTrace(t);
           writer.notifyTestFailed(TestRunListener.STATUS_FAILURE, testName, trace);
       }
   
       public void endTest(Test test) {
  +        log("Ending test: " + test);
           String testName = test.toString();
           writer.notifyTestEnded(testName);
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message