www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 84ff141eddb3501078e6edcbd662aa5131f28235
parent e2b62580d1ed9a761b7d4fa97ee96a79d8ad503a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 10 May 2015 02:43:44 -0400

Make the '✖' for test errors red

This makes it much easier to find the errors in a long list of tests.

Diffstat:
Mtest/content/runtests.js | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/test/content/runtests.js b/test/content/runtests.js @@ -53,9 +53,12 @@ function Reporter(runner) { runner.on('fail', function(test, err){ failed++; - dump("\r"+indent()+Mocha.reporters.Base.symbols.err+" "+test.title+"\n"+ - indent()+" "+err.toString()+" at\n"+ - indent()+" "+err.stack.replace("\n", "\n"+indent()+" ", "g")); + dump("\r" + indent() + // Dark red X for errors + + "\033[31;40m" + Mocha.reporters.Base.symbols.err + "\033[0m" + + " " + test.title + "\n" + + indent() + " " + err.toString() + " at\n" + + indent() + " " + err.stack.replace("\n", "\n" + indent() + " ", "g")); }); runner.on('end', function() {