Skip to content

Commit b235fce

Browse files
committed
Merge pull request #156 from jmm/bin-usage
Add info about bin usage to readme.
2 parents ccfcf4f + b9e3515 commit b235fce

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

readme.markdown

+21
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,27 @@ not ok 2 should be equal
4343
# fail 1
4444
```
4545

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+
4667
# things that go well with tape
4768

4869
tape maintains a fairly minimal core. Additional features are usually added by using another module alongside tape.

0 commit comments

Comments
 (0)