1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/tests/UI/config.dist.js
caddoo 2a71dafac9 Pass in testomat integration key, when not running unit tests. (#22294)
* add option to log to xml

* set correct env variable for testomatio

* shorten test time

* Remove additional php unit param

* Change expression to only pass in if not unit test

* Temporarily use branch for test action

* Remove logic for deciding if api key should be passed in

* Only report to testomatio for UI tests when not pull request

* Only report to testomatio for UI tests when env variable is true

* Update matomo-tests.yml

---------

Co-authored-by: Stefan Giehl <stefan@matomo.org>
2024-06-17 15:40:02 +12:00

77 خطوط
1.9 KiB
JavaScript

/*!
* Matomo - free/libre analytics platform
*
* UI tests config
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
/**
* The root Matomo 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-3.1.2';
/**
* The folder in tests/lib that holds chai.
*/
exports.chai = 'chai-1.9.0';
/**
* Mocha reporters to use (can be multiple delimited by a comma).
*/
if (process.env.TESTOMATIO && process.env.SHOULD_SEND_TO_TESTOMATIO === 'true') {
exports.reporter = 'mocha-multi-reporters';
exports.reporterOptions = {
reporterEnabled: 'spec, @testomatio/reporter/lib/adapter/mocha.js',
testomatioReporterLibAdapterMochaJsReporterOptions: {
apiKey: process.env.TESTOMATIO
}
};
} else {
exports.reporter = 'spec';
exports.reporterOptions = {};
}
/**
* The directory that stores expected screenshots. Relative to the UI repo's root directory.
*/
exports.expectedScreenshotsDir = ["./expected-screenshots", "./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";
/**
* The config object passed to the headless browser used by Puppeteer
*/
exports.browserConfig = {
args: ['--no-sandbox', '--ignore-certificate-errors']
};