Skip to content

Commit

Permalink
[readme] add doc for --no-only flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jocrah committed Jan 23, 2022
1 parent 441f042 commit 89e5e9b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions readme.markdown
Expand Up @@ -144,6 +144,23 @@ By default, uncaught exceptions in your tests will not be intercepted, and will
- In-process reporting with https://github.com/DavidAnson/tape-player
- Describe blocks with https://github.com/mattriley/tape-describe

# command-line flags

While running tests, top-level configurations can be passed via the command line to specify desired behavior.

Available configurations are listed below:

## --no-only
This is particularly useful in a CI environment where an [only test](#testonlyname-opts-cb) is not supposed to go unnoticed.

By passing the `--no-only` flag, any existing [only test](#testonlyname-opts-cb) causes tests to fail.

```sh
tape **/*.js --no-only
```

Alternatively, environmental variable `NODE_TAPE_NO_ONLY_TEST` can be set to `true` to achieve same behavior. Do note that the command-line flag takes precedence.

# methods

The assertion methods in `tape` are heavily influenced or copied from the methods in [node-tap](https://github.com/isaacs/node-tap).
Expand Down

0 comments on commit 89e5e9b

Please sign in to comment.