Skip to content

Commit

Permalink
add small test runner
Browse files Browse the repository at this point in the history
allows tape users to do "tape test/*.js" so they can have something that
will run their tests under "npm test".
  • Loading branch information
defunctzombie committed Mar 12, 2013
1 parent 295e35c commit 80e309a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions bin/tape
@@ -0,0 +1,8 @@
#!/usr/bin/env node

var path = require('path');
process.argv.slice(2).forEach(function(file) {
require(path.resolve(process.cwd(), file));
});

// vim: ft=javascript
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"version" : "0.2.2",
"description" : "tap-producing test harness for node and browsers",
"main" : "index.js",
"bin" : {},
"bin" : "./bin/tape",
"directories" : {
"example" : "example",
"test" : "test"
Expand Down

0 comments on commit 80e309a

Please sign in to comment.