ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTask.java
Date Fri, 08 Jul 2005 13:46:38 GMT
bodewig     2005/07/08 06:46:38

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        JUnitTask.java
  Log:
  Only write a 'Running' message for a test, if we are really running just that one test -
PR 35605
  
  Revision  Changes    Path
  1.118     +3 -1      ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
  
  Index: JUnitTask.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java,v
  retrieving revision 1.117
  retrieving revision 1.118
  diff -u -r1.117 -r1.118
  --- JUnitTask.java	30 Mar 2005 17:06:39 -0000	1.117
  +++ JUnitTask.java	8 Jul 2005 13:46:38 -0000	1.118
  @@ -792,6 +792,9 @@
           }
           cmd.setClassname("org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner");
           if (casesFile == null) {
  +            if (summary) {
  +                log("Running " + test.getName(), Project.MSG_INFO);
  +            }
               cmd.createArgument().setValue(test.getName());
           } else {
               log("Running multiple tests in the same VM", Project.MSG_VERBOSE);
  @@ -821,7 +824,6 @@
           }
   
           if (summary) {
  -            log("Running " + test.getName(), Project.MSG_INFO);
               String prefix = "";
               if ("withoutanderr".equalsIgnoreCase(summaryValue)) {
                   prefix = "OutErr";
  
  
  

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


Mime
View raw message