Skip to content

Commit 80e309a

Browse files
committed
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".
1 parent 295e35c commit 80e309a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

bin/tape

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env node
2+
3+
var path = require('path');
4+
process.argv.slice(2).forEach(function(file) {
5+
require(path.resolve(process.cwd(), file));
6+
});
7+
8+
// vim: ft=javascript

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version" : "0.2.2",
44
"description" : "tap-producing test harness for node and browsers",
55
"main" : "index.js",
6-
"bin" : {},
6+
"bin" : "./bin/tape",
77
"directories" : {
88
"example" : "example",
99
"test" : "test"

0 commit comments

Comments
 (0)