Skip to content

Instantly share code, notes, and snippets.

@stellaraccident
Created March 22, 2011 00:22
Show Gist options
  • Save stellaraccident/880523 to your computer and use it in GitHub Desktop.
Save stellaraccident/880523 to your computer and use it in GitHub Desktop.
My testrunner stub
#!/usr/bin/env node
require.paths.unshift(__dirname + '/local/lib');
process.chdir(__dirname);
var files=process.argv.slice(2).map(function(v) {
return v;
});
if (files.length===0) {
// Just run the whole directory
files=['local/test', 'test'];
}
var reporter=require('nodeunit').reporters.default;
reporter.run(files);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment