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:
authormattab <matthieu.aubry@gmail.com>2014-06-11 09:15:45 +0400
committermattab <matthieu.aubry@gmail.com>2014-06-11 09:15:45 +0400
commit6b050cc6c00e9d3f1e0c496a19807195245050b5 (patch)
tree3b838eafbf8b7868d9631afc3f84cfb7d1bb7b65 /tests/README.screenshots.md
parent448983ab907fa8039cb4a072da40d697e81e4e68 (diff)
Show example of config.js for screenshot test config
Diffstat (limited to 'tests/README.screenshots.md')
-rw-r--r--tests/README.screenshots.md15
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