From b08354a4f396109c5d4a36176da87fdb0e87da38 Mon Sep 17 00:00:00 2001 From: Matthieu Aubry Date: Mon, 28 Oct 2013 15:35:16 +1300 Subject: Update README.md clarifying screenshots test setup --- tests/README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'tests/README.md') diff --git a/tests/README.md b/tests/README.md index fc37df738f..7e602f0b57 100644 --- a/tests/README.md +++ b/tests/README.md @@ -200,22 +200,21 @@ run the following commands: $ git submodule init $ git submodule update -**Requirements:** +## Generate the same screenshots as expected In order to run UI tests, you need to have [phantomjs](http://phantomjs.org) version 1.9.0 or greater -installed on your machine. You can download phantomjs [here](http://phantomjs.org/download.html). - -phantomjs is headless, so even if you're on a server without the X window system, you can still run the +installed on your machine. You can download phantomjs [here](http://phantomjs.org/download.html). phantomjs is headless, so even if you're on a server without the X window system, you can still run the UI tests. -To generate screenshots identical to those generated by Travis, installing fonts may be useful. -Also you need to install Imagick compare to generate the "difference" screenshots which will show which pixels have changed. - On Ubuntu: $ sudo apt-get install ttf-mscorefonts-installer imagemagick imagemagick-doc -In one case, removing this font was necessary to get tests to pass: +To generate screenshots identical to those generated by Travis, we install some extra fonts. + +Imagick is used to generate the "difference" screenshots which show which pixels have changed. + +Removing this font may be useful if your generated screenshots' fonts do not match the expected screenshots: $ sudo apt-get remove ttf-bitstream-vera -- cgit v1.2.3