phpmyadmin/test
2016-07-22 12:12:21 +02:00
..
classes Merge branch 'QA_4_6' 2016-07-22 12:12:21 +02:00
libraries Allow only https outgoing links 2016-07-22 12:10:11 +02:00
selenium Do not try to run selenium tests if not told so 2016-02-22 09:26:28 +01:00
test_data Add second test for shape file import 2016-01-05 12:18:05 +01:00
.htaccess
bootstrap-dist.php Use phpmyadmin/shapefile instead of embedded bfShapeFile 2016-06-24 15:52:40 +02:00
ci-install-lint Separate install phase per CI modes 2016-02-22 08:05:49 +01:00
ci-install-release Separate install phase per CI modes 2016-02-22 08:05:49 +01:00
ci-install-selenium Separate install phase per CI modes 2016-02-22 08:05:49 +01:00
ci-install-test Revert "Install dbase extension on tests for shapefile" 2016-06-24 16:11:48 +02:00
ci-lint Rewrite Travis setup 2016-02-22 08:05:49 +01:00
ci-release Rewrite Travis setup 2016-02-22 08:05:49 +01:00
ci-selenium Fix typo 2016-05-25 11:35:41 +02:00
ci-test Do not try to run Selenium tests in normal tests run 2016-02-22 09:06:34 +01:00
Environment_test.php Minimum supported PHP version is now 5.5 2015-08-21 07:55:16 -04:00
install-browserstack Rewrite Travis setup 2016-02-22 08:05:49 +01:00
install-runkit No PECL on HHVM 2016-01-25 09:46:24 +01: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 Add doc comments 2016-02-19 22:56:30 +11:00
README.rst Fix example in test/README.rst 2016-02-28 17:30:01 +05:30
start-local-server Rewrite Travis setup 2016-02-22 08:05:49 +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:
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_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>