Launcher for renderer.
The easiest way is to keep karma-renderer-launcher
as a devDependency in your package.json
.
{
"devDependencies": {
"karma": "~0.10",
"karma-renderer-launcher": "~0.1.0"
}
}
You can simple do it by:
npm install karma-renderer-launcher --save-dev
In Ubuntu you'll need these packages and symbolic link to make renderer work:
sudo apt-get install libgtk2.0 libnss3 libgconf-2-4 libasound2 libudev1
ln -sf /lib/$(arch)-linux-gnu/libudev.so.1 /lib/$(arch)-linux-gnu/libudev.so.0
Also if you don't have at least one graphical interface on (in Vagrant or Docker for example) you'll need to install and run the headless X server:
export DISPLAY=:100.0
sudo apt-get install xvfb
(Xvfb :100 -ac &)
For more information on Karma see the homepage.