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 testenv with all npm packages installed. Try it out:

var testenv = require("testenv")

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

testenv v0.2.18

A handy test environment that uses Karma/Webdriver/Mocha test runners for your client/server side unit/integration test and end-to-end test with light configuration and simple command lines.

testenv

TravisCI

Install

npm i -D testenv
testenv init


Create Default Test Config File (Karma|Webdriver|Mocha)

testenv touch [<new-config-file-location>] [-k|-w|-m]

More about Karma Config File

More about Webdriver Config File

Run Custom Test Config File

testenv run [<config-file>]


Run Preset Test Config File

testenv run -c to run client side testings.

testenv run -s to run server side testings.

testenv run -e to run end-to-end testings.

testenv run -a to run all testings.

testenv run -u to run unit testings.

testenv run -i to run integration testings.

You could combine options [-u|-i] with options [-c|-s]. For example: to run client side unit testing.

Use testenv run -cu

Metadata

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