Skip to content
Browse files

add small test runner

allows tape users to do "tape test/*.js" so they can have something that
will run their tests under "npm test".
  • Loading branch information...
1 parent 295e35c commit 80e309ad6ae355bddaee54a33a1b69b871cff322 @defunctzombie defunctzombie committed Mar 12, 2013
Showing with 9 additions and 1 deletion.
  1. +8 −0 bin/tape
  2. +1 −1 package.json
View
8 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
View
2 package.json
@@ -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"

0 comments on commit 80e309a

Please sign in to comment.
Something went wrong with that request. Please try again.