1
0
Fork 0

Be more verbose if the server crashes during the tests.

This commit is contained in:
Wilfried Goesgens 2016-04-28 17:20:02 +02:00
parent ed03ae8bdc
commit 8f9992ac62
1 changed files with 6 additions and 5 deletions

View File

@ -3796,16 +3796,17 @@ function unitTestPrettyPrintResults(r) {
}
/*jshint forin: true */
let color = (r.status === true) ? GREEN : RED;
print("\n" + color + "* Overall state: " + ((r.status === true) ? "Success" : "Fail") + RESET);
let color = (!r.crashed && r.status === true) ? GREEN : RED;
let crashText = "";
if (r.crashed === true) {
crashText = RED + " BUT! - We had at least one unclean shutdown or crash during the testrun." + RESET;
}
print("\n" + color + "* Overall state: " + ((r.status === true) ? "Success" : "Fail") + RESET + crashText);
if (r.status !== true) {
print(color + " Suites failed: " + failedSuite + " Tests Failed: " + failedTests + RESET);
}
if (r.crashed === true) {
print("\nWe had at least one unclean shutdown or crash during the testrun.");
}
} catch (x) {
print("exception caught while pretty printing result: ");
print(x.message);