Skip to content
Extraits de code Groupes Projets
config.dist.js 1,33 ko
Newer Older
  • Learn to ignore specific revisions
  •  * 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
     */
    
    
    mattab's avatar
    mattab a validé
    /**
     * The root Piwik URL to test against.
     */
    
    mattab's avatar
    mattab a validé
    exports.piwikUrl = "http://localhost/";
    
    mattab's avatar
    mattab a validé
    
    /**
     * 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',
    
    mattab's avatar
    mattab a validé
        REQUEST_URI: '/',
    
    mattab's avatar
    mattab a validé
        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.0';
    
    
    /**
     * 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-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";