Commit 981cb5fa authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Doc: Add method to access the headless mode for browser tests

parent 0a4802e4
......@@ -43,3 +43,27 @@ gem install test-unit
#+BEGIN_SRC sh
ruby test_browser.rb
#+END_SRC
** Headless mode
On servers without a X server the browser tests can be launched in headless
mode.
For this sake one needs to install a few more dependencies:
#+BEGIN_SRC sh
gem install headless
#+END_SRC
The virtual framebuffer X server (=xvfb=) must also be installed. Depending
on the operating system the command will be different:
#+BEGIN_SRC sh
# On Debian/Ubuntu
apt-get install xvfb
# On Fedora/CentOS
yum install xvfb
#+END_SRC
Then the browser tests can be launched in headless mode with:
#+BEGIN_SRC sh
HEADLESS=1 ruby test_browser.rb
#+END_SRC
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment