https://github.com/mattriley/tape-only
Customise the behaviour of your tape.only tests.
https://github.com/mattriley/tape-only
many only tape test
Last synced: 3 months ago
JSON representation
Customise the behaviour of your tape.only tests.
- Host: GitHub
- URL: https://github.com/mattriley/tape-only
- Owner: mattriley
- Created: 2020-07-17T04:13:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T05:30:12.000Z (almost 5 years ago)
- Last Synced: 2024-02-23T21:20:27.461Z (over 1 year ago)
- Topics: many, only, tape, test
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tape-only
Customise the behaviour of your [tape](https://github.com/substack/tape).only tests.
## Install
```
npm install tape-only --save-dev
```## Usage
```js
const tape = require('tape');
const tapeOnly = require('tape-only');
const test = tapeOnly(tape, { mode: 'many' });
```Modes:
- `one`: Runs only one `tape.only` test. This is the default.
- `many`: Runs many `tape.only` tests.
- `ignore`: Runs `tape.only` tests as though they weren't marked only.Omitting `mode` will fallback to the `TAPE_ONLY` environment variable:
```
TAPE_ONLY=many tape 'tests/**/*.test.js'
```