You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

electron-testrunner

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-testrunner

**Quick hack**

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Electron Testrunner

Quick hack

Simple testrunner with browser environment. This recursively traverses(cycle-safe) all exported functions, and runs those called TEST_*. The exit code then depends on whether any of the functions threw an error. It also works for asynchrous tests, i.e. it waits for promises.

It depends on xvfb-run being installed, as it executes via electron, and is intended to run on travis-ci.

npm install --save-dev electron@1.6.3 electron-testrunner
node_modules/.bin/electron-testrunner file1ToTest.js file2ToTest.js

To run with npm run test, just add

{
  "scripts": {
     "test": "electron-testrunner filename.js"
  },
  "devDependencies": {
      "electron-testrunner": "^0.1.0",
  }
}

to package.json.

FAQs

Package last updated on 04 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts