Skip to content

MadLittleMods/safe-tape-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe Tape Runner

A tape runner that always exits with code 0. This allows us to play nice on Windows and keep our npm scripts composable.

Exiting with the right code should be the reporters job anyway.

But what about CI?

See the usage section. Just pipe to a reporter like tap-spec.

Latest version: v0.1.3

Install

npm install safe-tape-runner --save-dev

Usage

safe-tape-runner test.js

If you pipe to a reporter like tap-spec, it will exit with the proper code, 0 for passing and 1 for failing.

safe-tape-runner test.js | tap-spec

You can also use glob patterns because we pass through to babel-tape-runner:

safe-tape-runner lib/**/__tests__/*-test.js

Usage in package.json

package.json

{
  "scripts": {
    "test": "npm run test-unformatted | tap-spec",
    "test-unformatted": "safe-tape-runner ./tests/test.js"
  },
}

Testing

npm test

About

Tape runner that always exits with code 0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published