livetest
v0.0.21
Published
mocha live testing with nwjs
Downloads
13
Maintainers
Readme
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