1
0
Fork 0

Feature/log timestamp on test start (#6759)

This commit is contained in:
Wilfried Goesgens 2018-10-08 16:18:04 +02:00 committed by Jan
parent fac7b48c74
commit 056ee7064c
4 changed files with 5 additions and 5 deletions

View File

@ -805,10 +805,10 @@ function shutdownArangod (arangod, options, forceTerminate) {
} else {
const requestOptions = makeAuthorizationHeaders(options);
requestOptions.method = 'DELETE';
print(arangod.url + '/_admin/shutdown');
print(Date() + ' ' + arangod.url + '/_admin/shutdown');
const reply = download(arangod.url + '/_admin/shutdown', '', requestOptions);
if (options.extremeVerbosity) {
print('Shutdown response: ' + JSON.stringify(reply));
print(Date() + ' Shutdown response: ' + JSON.stringify(reply));
}
}
} else {

View File

@ -292,7 +292,7 @@ function performTests (options, testList, testname, runFn, serverOptions, startS
print(RED + 'No testcase matched the filter.' + RESET);
}
print('Shutting down...');
print(Date() + ' Shutting down...');
if (startStopHandlers !== undefined && startStopHandlers.hasOwnProperty('preStop')) {
customInstanceInfos['preStop'] = startStopHandlers.preStop(options,
serverOptions,

View File

@ -47,7 +47,7 @@ function setTestFilter(filter) {
}
jsUnity.results.begin = function (total, suiteName) {
print('Running ' + (suiteName || 'unnamed test suite'));
print(Date() + ' Running ' + (suiteName || 'unnamed test suite'));
print(' ' + total + ' test(s) found');
print();
RESULTS = {};

View File

@ -367,7 +367,7 @@ var jsUnity = exports.jsUnity = (function () {
jsUnity.tap.write("# " + suiteName);
jsUnity.tap.write("1.." + total);
jsUnity.log.info("Running "
jsUnity.log.info(Date() + " Running "
+ (suiteName || "unnamed test suite"));
jsUnity.log.info(plural(total, "test") + " found");
},