Tap testing in Electron. This project has two main value propositions:
- You can now easily test any JavaScript app in a real browser (Chromium) without hassling with PhantomJS or Webdriver.
- You can now easily test your Electron apps!
npm install -g electron-node-tap
npm start example
electron-node-tap <path> [options]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--renderer Run tests in renderer. [boolean]
--detail Run test in debug mode (It will not quit the test, and open the
devtools to help you debug it). [boolean] [default: false]
--reporter Test reporter, default is 'dot' [string] [default: "dot"]
If you run:
electron-node-tap ./tests
This runs the tests in the main process.
If you run:
electron-node-tap --renderer ./tests
This runs the tests in the renderer process.
TODO
MIT © 2017 Johnny Wu