xvfb-maybe

0.2.1 • Public • Published

xvfb-maybe

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

Usage:

## 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.144,704latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.144,704
0.2.03
0.1.3127
0.1.22
0.1.13
0.1.03

Package Sidebar

Install

npm i xvfb-maybe

Weekly Downloads

44,842

Version

0.2.1

License

MIT

Last publish

Collaborators

  • paulcbetts