Skip to content

electron-utils/electron-tap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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