Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2013-10-30 02:48:44 +0400
committerMatthieu Aubry <matt@piwik.org>2013-10-30 02:48:44 +0400
commitc8f61c6230fa45ecff1e10451519d3f04960e519 (patch)
tree0017c3433f55e5a5823e3e25db3e95981c903a11 /tests/README.screenshots.md
parentbaeec760914cf04e8800367751c7ee91303915c0 (diff)
Create README.screenshots.md
Diffstat (limited to 'tests/README.screenshots.md')
-rw-r--r--tests/README.screenshots.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/README.screenshots.md b/tests/README.screenshots.md
new file mode 100644
index 0000000000..24a989ae71
--- /dev/null
+++ b/tests/README.screenshots.md
@@ -0,0 +1,38 @@
+# Screenshots UI tests
+
+Piwik contains UI tests that work by taking a screenshot of a URL and comparing it with
+an expected screenshot. If the screenshots do not match, there is a bug somewhere.
+
+## Requirements
+These tests are in another repository but are included in Piwik as a submodule. To get the tests, run the following commands:
+
+ $ git submodule init
+ $ git submodule update
+
+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
+UI tests.
+
+On Ubuntu:
+
+ $ sudo apt-get install ttf-mscorefonts-installer imagemagick imagemagick-doc
+
+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
+
+## Running Tests
+
+You can test the UI by running:
+
+ $ cd PHPUnit
+ $ phpunit --group UI
+
+## Learn more
+
+Check out this blog post to learn more about Screenshot Tests in Piwik:
+[QA Screenshot Testing blog post](http://piwik.org/blog/2013/10/our-latest-improvement-to-qa-screenshot-testing/)