Skip to content

kruemelo/livetest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

live testing with mocha and nwjs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published