File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,27 @@ not ok 2 should be equal
43
43
# fail 1
44
44
```
45
45
46
+ # usage
47
+
48
+ You always need to ` require('tape') ` in test files. You can run the tests by
49
+ usual node means (` require('test-file.js') ` or ` node test-file.js ` ). You can
50
+ also run tests using the ` tape ` binary to utilize globbing, on Windows for
51
+ example:
52
+
53
+ ``` sh
54
+ $ tape tests/** /* .js
55
+ ```
56
+
57
+ ` tape ` 's arguments are passed to the
58
+ [ ` glob ` ] ( https://www.npmjs.com/package/glob ) module. If you want ` glob ` to
59
+ perform the expansion on a system where the shell performs such expansion, quote
60
+ the arguments as necessary:
61
+
62
+ ``` sh
63
+ $ tape ' tests/**/*.js'
64
+ $ tape " tests/**/*.js"
65
+ ```
66
+
46
67
# things that go well with tape
47
68
48
69
tape maintains a fairly minimal core. Additional features are usually added by using another module alongside tape.
You can’t perform that action at this time.
0 commit comments