This Gist shows how to start and stop Xvfb from a Grunt script as part of your build. This is useful if you want to run unit tests in a browser in a headless setting.
- Make sure that Xvfb is installed on your system, e.g. through your Linux distribution's package manager.
- Make sure that the Xvfb executable is on your PATH.