livetest

0.0.21 • Public • Published

run mocha tests in nwjs window

current version installs nwjs 0.32.4 sdk

Install

npm i livetest --save-dev

Usage

$ node livetest --config=./test/config.json
$ node node_modules/.bin/livetest

If you want to run multiple instances, add the --user-data-dir option to start nw with different profiles:

$ node livetest --user-data-dir=first-profile &
$ node livetest --user-data-dir=second-profile

Test

$ npm test

Help

$ livetest -h
  Usage: livetest [options]
 
  Run livetests in a directory
 
  Options:
 
    -h, --help              output usage information
    -V, --version           output the version number
    -c, --config <testdir>  test config filename, default: ./test/config.json
 
  Examples:
 
    $ livetest
    $ livetest --config=./test/config.json
 

Config file

{
  "files": [
    "test/test1Spec.js",
    "./test/**/*Spec.js"
  ]
}

License

MIT © kruemelo

Package Sidebar

Install

npm i livetest

Weekly Downloads

12

Version

0.0.21

License

MIT

Unpacked Size

16.9 kB

Total Files

14

Last publish

Collaborators

  • kruemelo