We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
colors.mode
1 parent 5c3d41b commit 48d4a8bCopy full SHA for 48d4a8b
test/core/run
@@ -29,7 +29,10 @@ var fs = require('fs'),
29
path = require('path'),
30
spawn = require('child_process').spawn,
31
async = require('async'),
32
- colors = require('colors');
+ colors = require('colors'),
33
+ optimist = require('optimist');
34
+
35
+optimist.argv.color && (colors.mode = optimist.argv.color);
36
37
var testTimeout = 15000;
38
var results = {};
@@ -57,7 +60,9 @@ function runTest(test, callback) {
57
60
});
58
61
};
59
62
-var tests = process.argv.slice(2);
63
+var tests = process.argv.slice(2).filter(function (test) {
64
+ return test.substr(0, 2) != '--';
65
+});
66
67
if (!tests.length) {
68
var pathPrefix = path.join(__dirname, 'simple');
0 commit comments