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:
authorThomas Steur <thomas.steur@gmail.com>2015-02-03 23:30:15 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-02-03 23:30:15 +0300
commit9ad111320fc0e882687670bd393a9b8dd9019ea0 (patch)
treecd07a69f40d70da74b9d966bc5729e4c01c5ff8c /tests/UI/config.dist.js
parent5da74635966eafe7e5f22d3b92725951b4a2acea (diff)
move UI config to test folder and allow optionally to define a local config that will not be commited
Diffstat (limited to 'tests/UI/config.dist.js')
-rw-r--r--tests/UI/config.dist.js58
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/UI/config.dist.js b/tests/UI/config.dist.js
new file mode 100644
index 0000000000..93aa763cf1
--- /dev/null
+++ b/tests/UI/config.dist.js
@@ -0,0 +1,58 @@
+/*!
+ * Piwik - free/libre analytics platform
+ *
+ * UI tests config
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ */
+
+/**
+ * The root Piwik URL to test against.
+ */
+exports.piwikUrl = "http://localhost/";
+
+/**
+ * Data for the $_SERVER variable in the setup/teardown PHP scripts. Should be the same as
+ * the values in your phpunit.xml file.
+ */
+exports.phpServer = {
+ HTTP_HOST: 'localhost',
+ REQUEST_URI: '/',
+ REMOTE_ADDR: '127.0.0.1'
+};
+
+/**
+ * The path to the PHP executable to execute when setting up & tearing down the database.
+ */
+exports.php = 'php';
+
+/**
+ * The folder in tests/lib that holds mocha.
+ */
+exports.mocha = 'mocha-1.17.1';
+
+/**
+ * The folder in tests/lib that holds chai.
+ */
+exports.chai = 'chai-1.9.0';
+
+/**
+ * The mocha reporter to use.
+ */
+exports.reporter = "spec";
+
+/**
+ * The directory that stores expected screenshots. Relative to the UI repo's root directoriy.
+ */
+exports.expectedScreenshotsDir = "./expected-ui-screenshots";
+
+/**
+ * The directory that stores processed screenshots. Relative to the UI repo's root directory.
+ */
+exports.processedScreenshotsDir = "./processed-ui-screenshots";
+
+/**
+ * The directory that stores screenshot diffs. Relative to the UI repo's root directory.
+ */
+exports.screenshotDiffDir = "./screenshot-diffs";