1
0
Fork 0

Combine successfull testcases to one status line.

This commit is contained in:
Willi Goesgens 2015-05-21 09:55:35 +02:00
parent 3c0660cfe3
commit 38c1d1d8ca
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}