diff mx/JUnitWrapper.java @ 9637:f38f746f4980

JUnitWrapper: print class name if only one testclass is executed
author Bernhard Urban <bernhard.urban@jku.at>
date Fri, 10 May 2013 16:31:44 +0200
parents 94d98d334ccd
children f2132fab8a6f 12f2b3baa163
line wrap: on
line diff
--- a/mx/JUnitWrapper.java	Fri May 10 12:55:34 2013 +0200
+++ b/mx/JUnitWrapper.java	Fri May 10 16:31:44 2013 +0200
@@ -67,7 +67,11 @@
         }
 
         String[] strargs = tests.toArray(new String[tests.size()]);
-        System.out.printf("executing junit tests now... (%d test classes)\n", strargs.length);
+        if (strargs.length == 1) {
+            System.out.printf("executing junit test now... (%s)\n", strargs[0]);
+        } else {
+            System.out.printf("executing junit tests now... (%d test classes)\n", strargs.length);
+        }
         JUnitCore.main(strargs);
     }
 }