electron-node-tap

1.1.4 • Public • Published

electron-node-tap

Linux Build Status Windows Build status Dependency Status devDependency Status

Tap testing in Electron. This project has two main value propositions:

  1. You can now easily test any JavaScript app in a real browser (Chromium) without hassling with PhantomJS or Webdriver.
  2. You can now easily test your Electron apps!

Install

npm install -g electron-node-tap

Run Examples:

npm start example

Usage

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.

API Reference

TODO

License

MIT © 2017 Johnny Wu

Dependents (1)

Package Sidebar

Install

npm i electron-node-tap

Weekly Downloads

5

Version

1.1.4

License

MIT

Last publish

Collaborators

  • johnnywu