tape-runner

A tape runner API allowing you to create custom test runners.

Usage no npm install needed!

<script type="module">
  import tapeRunner from 'https://cdn.skypack.dev/tape-runner';
</script>

README

tape-runner

A tape runner API allowing you to create custom test runners.

Build Status Code Climate js-standard-style

npm install tape-runner --save-dev
npm stats

npm NPM downloads Dependency Status

Usage

test.js
require('tape-runner')()
package.json
{
  "scripts": {
    "test": "node test.js"
  }
}

Features

  • Installs the latest version of tape and tape-catch as devDependencies for you.
  • Auto-locates tests in the test, lib, and app directories.
  • Supports naming test files *.test.js, *.tests.js, test.js, and tests.js.
  • Supports passing values into tests.
  • Supports passing in an alternative array of test files (ignores the default file glob).

API

runner(params, files)

arguments
  • [params]: (Array) parameters to pass to exported test function.
  • [files]: (Array) files to pass to exported test function.

Contributing

SEE: contributing.md

Licenses

GitHub license