diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-11 09:15:45 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-11 09:15:45 +0400 |
commit | 6b050cc6c00e9d3f1e0c496a19807195245050b5 (patch) | |
tree | 3b838eafbf8b7868d9631afc3f84cfb7d1bb7b65 /tests/README.screenshots.md | |
parent | 448983ab907fa8039cb4a072da40d697e81e4e68 (diff) |
Show example of config.js for screenshot test config
Diffstat (limited to 'tests/README.screenshots.md')
-rw-r--r-- | tests/README.screenshots.md | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/README.screenshots.md b/tests/README.screenshots.md index 39648b1435..b8f54c0263 100644 --- a/tests/README.screenshots.md +++ b/tests/README.screenshots.md @@ -64,7 +64,20 @@ Removing this font may be useful if your generated screenshots' fonts do not mat ### Configuring screenshot testing library -The screenshot testing library's configuration resides in the tests/lib/screenshot-testing/config.js file. If your development environment's PHP executable isn't named 'php' or your dev Piwik install isn't at http://localhost/, you may need to edit the contents of this file. +The screenshot testing library's configuration resides in the tests/lib/screenshot-testing/config.js file. +If your development environment's PHP executable isn't named `php` +or your dev Piwik install isn't at `http://localhost/` you may need to edit the contents of this file. + +For example if Piwik is setup at `http://localhost/piwik` modify the config.js such as: +``` +exports.piwikUrl = "http://localhost/piwik/"; +exports.phpServer = { + HTTP_HOST: 'localhost', + REQUEST_URI: '/piwik/', + REMOTE_ADDR: '127.0.0.1' +}; + +``` ## Running Tests |