Add "[FAIL]" to test failures, for easier searching of output

This commit is contained in:
Dan Stillman 2016-01-07 16:49:12 -05:00
parent 4a5de628ce
commit 07fbda2b72

View file

@ -136,7 +136,7 @@ function Reporter(runner) {
let indentStr = indent();
dump("\r" + indentStr
// Dark red X for errors
+ "\033[31;40m" + Mocha.reporters.Base.symbols.err + "\033[0m"
+ "\033[31;40m" + Mocha.reporters.Base.symbols.err + " [FAIL]\033[0m"
+ " " + test.title + "\n"
+ indentStr + " " + err.toString() + " at\n"
+ err.stack.replace(/^/gm, indentStr + " "));