Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 37 lines (32 sloc) 808 Bytes
#!/usr/bin/env node
"use strict";
try {
var reporter = require('nodeunit').reporters.default;
}
catch(e) {
console.log("Error: " + e.message);
console.log("");
console.log("Cannot find nodeunit module.");
console.log("Please run the following:");
console.log("");
console.log(" npm install");
console.log("");
process.exit();
}
process.chdir(__dirname);
if (process.argv[2]) {
console.log("Running tests: ", process.argv.slice(2));
reporter.run(process.argv.slice(2), undefined, function (err) {
process.exit(((err) ? 1 : 0));
});
}
else {
reporter.run([
'tests',
'tests/plugins',
'tests/plugins/auth',
'tests/plugins/queue'
], undefined, function (err) {
process.exit(((err) ? 1 : 0));
});
}
Something went wrong with that request. Please try again.