From 38c1d1d8cac61f09ac510930ce57c832764024f0 Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Thu, 21 May 2015 09:55:35 +0200 Subject: [PATCH] Combine successfull testcases to one status line. --- js/server/modules/org/arangodb/testing.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/server/modules/org/arangodb/testing.js b/js/server/modules/org/arangodb/testing.js index e09ecc382b..a40af95b4a 100644 --- a/js/server/modules/org/arangodb/testing.js +++ b/js/server/modules/org/arangodb/testing.js @@ -1875,10 +1875,11 @@ function unitTestPrettyPrintResults(r) { var oneOutput = ""; oneOutput = "Testrun: " + testrun + "\n"; + var successTests = ""; for (test in r[testrun]) { if (r[testrun].hasOwnProperty(test) && (internalMembers.indexOf(test) === -1)) { if (r[testrun][test].status) { - oneOutput += " [Success] " + test + "\n"; + successTests += test + ', '; } else { testSuiteFail++; @@ -1909,6 +1910,9 @@ function unitTestPrettyPrintResults(r) { } } } + if (successTests !== "") { + oneOutput = " [Success] " + successTests + '\n' + oneOutput; + } if (isSuccess) { success += oneOutput; }