Run an executable under xvfb-run, but only when needed

License: MIT

Language: JavaScript


This package runs an arbitrary executable / args under xvfb-run if the platform is Linux and DISPLAY isn't set. This is super useful for making Electron unit tests run correctly in CI environments while still working locally


## On Windows or OS X, this just invokes electron-mocha
## On Linux, if we are in a headless environment, this will be equivalent 
## to xvfb-run electron-mocha ./test/*.js
xvfb-maybe electron-mocha ./test/*.js

Project Statistics

Sourcerank 8
Repository Size 9.77 KB
Stars 64
Forks 5
Watchers 4
Open issues 0
Dependencies 4
Contributors 2
Tags 2
Last updated
Last pushed

Top Contributors See all

Anaïs Betts Christian Sciberras

Packages Referencing this Repo

Runs xvfb-run only if you need to, useful for Electron unit tests
Latest release 0.2.1 - Updated - 64 stars

Recent Tags See all

v0.2.1 April 27, 2017
v0.2.0 April 26, 2017

Something wrong with this page? Make a suggestion

Last synced: 2017-04-27 19:17:20 UTC

Login to resync this repository