JSPM

  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q59464F
  • License MIT

Executes test scripts in the specified dirs.

Package Exports

  • test-executor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (test-executor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-test-executor

NPM Version Build Status codecov

Executes test scripts and directories of test scripts. It's based on Async Tree Pattern.

Install

npm i test-executor

How to use

const { ExecutedTests } = require('test-executor')

new ExecutedTests(
    './test/test.js', './test/dir1', './test/dir2'
).call() // or just new ExecutedTests('./test').call()

Output will be smth like this (example of case when one of the tests fails):

gaa1

Test

npm run test

Build

npm run build

Run example

npm run example