Mercurial > hg > truffle
changeset 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 | ff4e8218d3dd |
children | c455c86138ba |
files | mx/JUnitWrapper.java |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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); } }