Skip to content

Commit

Permalink
[test] Run tests in test/core/simple by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Dec 18, 2011
1 parent e109eba commit 68cebbe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/core/run
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
*/

var path = require('path'),
var fs = require('fs'),
path = require('path'),
spawn = require('child_process').spawn,
async = require('async'),
colors = require('colors');
Expand Down Expand Up @@ -56,6 +57,17 @@ function runTest(test, callback) {
};

var tests = process.argv.slice(2);

if (!tests.length) {
var pathPrefix = path.join(__dirname, 'simple');
tests = fs.readdirSync(pathPrefix).map(function (test) {
return path.join(pathPrefix, test);
});
//
// We only run simple tests by default.
//
}

async.forEachSeries(tests, runTest, function () {
var failed = [], ok = [];
for (var test in results) {
Expand Down

0 comments on commit 68cebbe

Please sign in to comment.