comparison 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
comparison
equal deleted inserted replaced
9636:ff4e8218d3dd 9637:f38f746f4980
65 System.exit(3); 65 System.exit(3);
66 } 66 }
67 } 67 }
68 68
69 String[] strargs = tests.toArray(new String[tests.size()]); 69 String[] strargs = tests.toArray(new String[tests.size()]);
70 System.out.printf("executing junit tests now... (%d test classes)\n", strargs.length); 70 if (strargs.length == 1) {
71 System.out.printf("executing junit test now... (%s)\n", strargs[0]);
72 } else {
73 System.out.printf("executing junit tests now... (%d test classes)\n", strargs.length);
74 }
71 JUnitCore.main(strargs); 75 JUnitCore.main(strargs);
72 } 76 }
73 } 77 }