Merge pull request #2120 from Microsoft/mochaColors

Add support for printing colors to the command line when running mocha!
This commit is contained in:
CyrusNajmabadi 2015-02-23 16:47:28 -08:00
commit d1df797918

View File

@ -574,7 +574,7 @@ task("runtests", ["tests", builtLocalDirectory], function() {
}
colors = process.env.colors || process.env.color
colors = colors ? ' --no-colors ' : ''
colors = colors ? ' --no-colors ' : ' --colors ';
tests = tests ? ' -g ' + tests : '';
reporter = process.env.reporter || process.env.r || 'dot';
// timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally