diff --git a/js/common/modules/@arangodb/mocha-runner.js b/js/common/modules/@arangodb/mocha-runner.js index 196d24f252..2efe6540b3 100644 --- a/js/common/modules/@arangodb/mocha-runner.js +++ b/js/common/modules/@arangodb/mocha-runner.js @@ -77,6 +77,10 @@ function logStats(stats) { + colors.COLOR_RED + stats.failures + colors.COLOR_RESET + + ' | ' + + colors.COLOR_CYAN + + stats.pending + + colors.COLOR_RESET + ' )' ); } @@ -102,6 +106,14 @@ function logSuite(suite, indentLevel) { + test.title + colors.COLOR_RESET ); + } else if (test.result === 'pending') { + print( + indent(indentLevel) + + colors.COLOR_CYAN + + '[SKIP] ' + + test.title + + colors.COLOR_RESET + ); } else { print( indent(indentLevel) @@ -155,10 +167,10 @@ function buildJson(results) { newName = `${name} ${i++}`; } result[newName] = { - status: stats.result === 'pass', + status: stats.result === 'pass' || stats.result === 'pending', duration: stats.duration }; - if (stats.result !== 'pass') { + if (stats.result !== 'pass' && stats.result !== 'pending') { result[newName].message = stats.err.stack; } }