An open API service indexing awesome lists of open source software.

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.

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'
```