Skip to content

Commit 68cebbe

Browse files
committed
[test] Run tests in test/core/simple by default
1 parent e109eba commit 68cebbe

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

test/core/run

+13-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
2626
*/
2727

28-
var path = require('path'),
28+
var fs = require('fs'),
29+
path = require('path'),
2930
spawn = require('child_process').spawn,
3031
async = require('async'),
3132
colors = require('colors');
@@ -56,6 +57,17 @@ function runTest(test, callback) {
5657
};
5758

5859
var tests = process.argv.slice(2);
60+
61+
if (!tests.length) {
62+
var pathPrefix = path.join(__dirname, 'simple');
63+
tests = fs.readdirSync(pathPrefix).map(function (test) {
64+
return path.join(pathPrefix, test);
65+
});
66+
//
67+
// We only run simple tests by default.
68+
//
69+
}
70+
5971
async.forEachSeries(tests, runTest, function () {
6072
var failed = [], ok = [];
6173
for (var test in results) {

0 commit comments

Comments
 (0)