Comments (5)
Here is the list of dependencies in Debian (from segment-boneyard/nightmare#224 (comment)):
xvfb
libgtk2.0-0
libgconf-2-4
libasound2
libxtst6
libxss1
libnss3
Here is a Dockerfile with the dependencies for CentOS. I had to install the following dependencies in CentOS 7:
yum install -y \
libX11-devel.x86_64 \
pixman-devel.x86_64 \
libdrm-devel.x86_64 \
mesa-libGL-devel.x86_64 \
openssl-devel.x86_64 \
xorg-x11-xtrans-devel.noarch \
libXfont-devel.x86_64 \
libxkbfile-devel.x86_64 \
libpciaccess-devel.x86_64 \
xorg-x11-utils \
libXtst-devel.x86_64 \
libjpeg-turbo-devel.x86_64 \
gtk2-2.24.28-8.el7.x86_64 \
libXScrnSaver-1.2.2-6.1.el7.x86_64 \
GConf2-3.2.6-8.el7.x86_64 \
alsa-lib-1.1.1-1.el7.x86_64 \
'gnu-free-sans-fonts'
from karma-electron.
Sweet! Found out that I needed to install libXss. Did that and it works! Thanks :)
from karma-electron.
Please make sure you are setting a DISPLAY
environment variable that will be shared by Xvfb and karma
. Here's the typical Travis CI setup:
and here it is working in this very repo with Travis CI (uses default npm test
via Travis CI):
https://github.com/twolfson/karma-electron/blob/5.1.1/.travis.yml#L16-L22
There's also a cleaner variant suggested by Electron's docs:
https://github.com/electron/electron/blob/v1.4.10/docs/tutorial/testing-on-headless-ci.md
from karma-electron.
I have DISPLAY
defined and I can tell the display is configured properly because I can run firefox
without an error. but this is what I see when I try karma:
$ ps -a
PID TTY TIME CMD
2511 tty1 00:00:00 bash
13232 pts/1 00:00:00 Xvfb
13336 pts/1 00:00:00 ps
$ echo $DISPLAY
:99.0
$ ./node_modules/.bin/karma start ./karma.config.js --single-run
05 12 2016 11:27:27.981:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
05 12 2016 11:27:27.983:INFO [launcher]: Launching browser Electron with unlimited concurrency
05 12 2016 11:27:28.085:INFO [launcher]: Starting browser Electron
05 12 2016 11:27:28.201:ERROR [launcher]: Cannot start Electron
05 12 2016 11:27:28.849:INFO [launcher]: Trying to start Electron again (1/2).
05 12 2016 11:27:28.889:ERROR [launcher]: Cannot start Electron
05 12 2016 11:27:28.910:INFO [launcher]: Trying to start Electron again (2/2).
05 12 2016 11:27:28.947:ERROR [launcher]: Cannot start Electron
05 12 2016 11:27:28.952:ERROR [launcher]: Electron failed 2 times (cannot start). Giving up.
from karma-electron.
from karma-electron.
Related Issues (20)
- `electron` did show not nothing happen then HOT 1
- Can't import nodejs modules in an angular-cli project (Typescript) HOT 1
- Errors without stack traces coming from karma-electron? HOT 5
- running with ndb for debugging? HOT 2
- Unable to open Electron window using --show HOT 3
- Electron 5 nodeIntegration HOT 12
- Custom launcher `require` mechanism doesn't work HOT 4
- Module paths are messed up HOT 5
- Error: Karma plugin is meant to be used from within Angular CLI and will not work correctly outside of it HOT 1
- How to configure NODE_PATH for the Electron instance? HOT 24
- [feature] option like 'require', but for renderer processes. HOT 1
- Karma times out when using Electron 9 and client.useIframe = false HOT 20
- Non-context aware native modules in renderer will cause specs to error HOT 3
- [questions] Is Electron 12 supported? HOT 16
- electron V12.0.4---------require is not defined HOT 3
- ES Modules HOT 2
- "require is not defined" after update to karma-electron 7 / electron 12 HOT 12
- Regardless of the `browserWindowOptions.show` value, a window always opens. HOT 12
- sqlite3 stalls with nodeIntegration true contextIsolation false HOT 12
- Consider migrating this great work to @web/test-runner. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma-electron.