phpmyadmin/test
Michal Čihař 8dd5df2a7f Merge pull request #1077 from ganeshaditya1/multicolumn
Multicolumn sorting feature request(1507)
2014-03-24 15:21:54 +01:00
..
classes Merge pull request #1077 from ganeshaditya1/multicolumn 2014-03-24 15:21:54 +01:00
engines PHPCS updates. 2014-03-15 11:46:16 +01:00
libraries Fix test. 2014-03-15 11:54:32 +01:00
selenium Try to limit browser set to see if it helps running testsuite 2014-03-21 07:26:36 +01:00
test_data Signed-off-by: Marc Delisle <marc@infomarc.info> 2013-12-14 14:26:12 -05:00
.htaccess Elaborate on .htaccess comment 2011-07-15 10:28:20 +02:00
AllSeleniumTests.php Fix minor selenium test issues 2014-02-14 16:38:42 +05:30
bootstrap-dist.php More descriptive message from test bootstrap 2014-02-24 11:01:19 +01:00
Environment_test.php Remove not implemented session test 2014-02-27 12:04:59 +01:00
README.rst Remove trailing whitespace from the code 2014-03-20 09:36:48 +01:00
theme.php Fix coding style. 2014-01-09 18:22:11 +01:00
travis.php.ini Revert "Increase time limits for tests on Travis" 2013-09-16 09:17:28 +02:00
wui.php Use package name PhpMyAdmin 2011-10-25 10:13:17 +02:00

PhpMyAdmin test suite
=====================

This directory is protected from web visitors by a .htaccess file.

For more information on allowing http access to this directory see:
http://httpd.apache.org/docs/current/mod/mod_authz_host.html#allow

Please visit the wiki for more information on unit testing:
https://wiki.phpmyadmin.net/pma/UnitTesting

Selenium tests
--------------

To be able to run Selenium tests, you need to have webserver, database
and Selenium running. Following environment variables configure where
testsuite connects:

TESTSUITE_SERVER
    Database server to use.
TESTSUITE_USER
    Username for connecting to database.
TESTSUITE_PASSWORD
    Password for connecting to database.
TESTSUITE_DATABASE
    Database to use for testing.
TESTSUITE_URL
    URL where tested phpMyAdmin is available.

Additionally you need to configure link to Selenium and browsers. You
can either setup Selenium locally or use BrowserStack automated testing.

For local setup, define following:

TESTSUITE_SELENIUM_HOST
    Host where Selenium is running.
TESTSUITE_SELENIUM_PORT
    Port where to connect.
TESTSUITE_SELENIUM_BROWSER
    Browser to use for testing inside Selenium.

With BrowserStack, set following:

TESTSUITE_BROWSERSTACK_UNAME
    BrowserStack username.
TESTSUITE_BROWSERSTACK_KEY
    BrowserStack access key.

For example you can use following setup in ``phpunit.xml``::

    <php>
        <env name="TESTSUITE_SERVER" value="localhost"/>
        <env name="TESTSUITE_USER" value="root"/>
        <env name="TESTSUITE_PASSWORD" value="root"/>
        <env name="TESTSUITE_DATABASE" value="test"/>
        <env name="TESTSUITE_PHPMYADMIN_HOST" value="http://localhost/phpmyadmin/" />
        <env name="TESTSUITE_SELENIUM_HOST" value="127.0.0.1" />
    </php>