phpmyadmin/test
Michal Čihař 3fe1e5a625 Use python 3.6 to build docs
It fixes SNI issues.

Signed-off-by: Michal Čihař <michal@cihar.com>
2018-02-22 23:38:20 +01:00
..
classes Always use POST for links containing SQL query 2018-02-22 13:36:20 -03:00
libraries Adjust table operations to use POST 2018-02-22 16:01:00 -03:00
selenium Do not execute tearDown if not configured 2017-01-20 16:29:55 +01:00
test_data Remove connect_type setting 2017-02-02 16:08:44 +01:00
bootstrap-dist.php Update to use motranslator 3.0 2017-01-23 12:33:22 +01:00
ci-docs Add documentation checks to be executed in Travis CI 2016-10-18 10:26:33 +02:00
ci-install-docs Use python 3.6 to build docs 2018-02-22 23:38:20 +01:00
ci-install-lint Separate install phase per CI modes 2016-02-22 08:05:49 +01:00
ci-install-release Leverage pip cache instead of using apt packages 2017-03-01 16:57:26 +01:00
ci-install-selenium Remove deprecated --dev from composer calls 2016-10-18 10:17:54 +02:00
ci-install-test Remove deprecated --dev from composer calls 2016-10-18 10:17:54 +02:00
ci-lint Fix parameter name 2017-03-01 22:19:26 +01:00
ci-release Rewrite Travis setup 2016-02-22 08:05:49 +01:00
ci-selenium Do not use ant on Travis 2017-03-01 16:51:06 +01:00
ci-test Do not use ant on Travis 2017-03-01 16:51:06 +01:00
Environment_test.php Minimum supported PHP version is now 5.5 2015-08-21 07:55:16 -04:00
install-browserstack Merge branch 'QA_4_6' 2016-12-08 11:42:07 +01:00
install-runkit Avoid runkit installation on PHP 7.2 2017-08-01 08:54:42 +02:00
php-noprofile.ini Improve Travis setup 2016-01-25 09:01:48 +01:00
php-runkit.ini Do not load runkit extension twice in tests 2016-01-25 09:47:49 +01:00
PMATestCase.php Share more of response mocking 2017-01-18 16:32:19 +01:00
README.rst Use https for outbound links where applicable 2016-07-28 09:19:13 +02:00
start-local-server Merge branch 'QA_4_6' 2016-12-08 11:42:07 +01: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:
https://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_USER
    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_URL" value="http://localhost/phpmyadmin/" />
        <env name="TESTSUITE_SELENIUM_HOST" value="127.0.0.1" />
        <env name="TESTSUITE_SELENIUM_PORT" value="4444" />
    </php>