run mocha tests in nwjs window
current version installs nwjs 0.32.4 sdk
npm i livetest --save-dev$ node livetest --config=./test/config.json
$ node node_modules/.bin/livetestIf 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$ npm test$ 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
{
"files": [
"test/test1Spec.js",
"./test/**/*Spec.js"
]
}
MIT © kruemelo