phpmyadmin/test
Madhura Jayaratne 256be5b859 Remove tests related to Drizzle specific functionalities
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-09-10 01:02:32 +10:00
..
classes Remove tests related to Drizzle specific functionalities 2015-09-10 01:02:32 +10:00
engines Fix indentation 2015-04-28 18:16:17 +05:30
libraries Remove tests related to Drizzle specific functionalities 2015-09-10 01:02:32 +10:00
selenium Standardize to sentence case 2015-08-26 16:57:42 +10:00
test_data Signed-off-by: Marc Delisle <marc@infomarc.info> 2013-12-14 14:26:12 -05:00
.htaccess
AllSeleniumTests.php Remove unneeded closing tags. 2015-07-19 00:18:38 +03:00
bootstrap-dist.php Remove unneeded closing tags. 2015-07-19 00:18:38 +03:00
Environment_test.php Minimum supported PHP version is now 5.5 2015-08-21 07:55:16 -04:00
install-browserstack Simplify BrowserStack testing setup 2014-12-04 16:33:16 +01:00
install-runkit Stick to known working version of runkit 2015-08-27 07:04:16 +02:00
README.rst Include Selenim port in sample settings 2014-04-24 15:53:25 +02:00
theme.php Replace script names as config options with plain english words 2015-06-13 04:41:54 +05:30
travis.php.ini Disable xdebug profiler 2015-04-07 09:05:48 +02:00
wui.php Remove unneeded closing tags. 2015-07-19 00:18:38 +03: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" />
        <env name="TESTSUITE_SELENIUM_PORT" value="4444" />
    </php>