Skip to content
Extraits de code Groupes Projets
config.js 1,29 ko
Newer Older
  • Learn to ignore specific revisions
  • /*!
     * Piwik - Web Analytics
     *
     * UI tests config
     *
     * @link http://piwik.org
     * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
     */
    
    /**
     * 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";
    
    /**
     * The root Piwik URL to test against.
     */
    exports.piwikUrl = "http://localhost/";
    
    /**
     * The path to the PHP executable to execute when setting up & tearing down the database.
     */
    exports.php = 'php';
    
    /**
     * 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'
    };