Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including test-executor with all npm packages installed. Try it out:

var testExecutor = require("test-executor")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

test-executor v1.2.4

Executes test scripts in the specified dirs.


NPM Version Build Status codecov

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


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):



npm run test


npm run build

Run example

npm run example

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free