aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-05-13 20:03:15 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-05-13 20:03:15 +0200
commitf81e8e9901ae64655cfd4d1c3ee1501bf5a13d09 (patch)
tree8ed6ea0a78169994be06619d70f23491e89ddda7 /tests
parent8861e26034beb9367d1f1fd006ea83852951c6f6 (diff)
parent2592fbf8e927b064f41b744b8725341f18e02e68 (diff)
downloadforums-f81e8e9901ae64655cfd4d1c3ee1501bf5a13d09.tar
forums-f81e8e9901ae64655cfd4d1c3ee1501bf5a13d09.tar.gz
forums-f81e8e9901ae64655cfd4d1c3ee1501bf5a13d09.tar.bz2
forums-f81e8e9901ae64655cfd4d1c3ee1501bf5a13d09.tar.xz
forums-f81e8e9901ae64655cfd4d1c3ee1501bf5a13d09.zip
Merge remote-tracking branch 'p/ticket/10892' into develop-olympus
* p/ticket/10892: [ticket/10892] Update wiki link to mediawiki. [ticket/10892] Add empty lines for consistency. [ticket/10892] Reformat RUNNING_TESTS.txt to 79 char lines. [ticket/10892] Reformat RUNNING_TESTS.txt to 80 char lines.
Diffstat (limited to 'tests')
-rw-r--r--tests/RUNNING_TESTS.txt22
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/RUNNING_TESTS.txt b/tests/RUNNING_TESTS.txt
index 59197acc0f..c80c42a83d 100644
--- a/tests/RUNNING_TESTS.txt
+++ b/tests/RUNNING_TESTS.txt
@@ -21,12 +21,13 @@ the following PHP extensions must be installed and enabled to run unit tests:
Database Tests
--------------
+
By default all tests requiring a database connection will use sqlite. If you
do not have sqlite installed the tests will be skipped. If you wish to run the
tests on a different database you have to create a test_config.php file within
-your tests directory following the same format as phpBB's config.php. An example
-for mysqli can be found below. More information on configuration options can be
-found on the wiki (see below).
+your tests directory following the same format as phpBB's config.php. An
+example for mysqli can be found below. More information on configuration
+options can be found on the wiki (see below).
<?php
$dbms = 'mysqli';
@@ -36,8 +37,9 @@ found on the wiki (see below).
$dbuser = 'user';
$dbpasswd = 'password';
-Alternatively you can specify parameters in the environment, so e.g. the following
-will run phpunit with the same parameters as in the shown test_config.php file:
+Alternatively you can specify parameters in the environment, so e.g. the
+following will run phpunit with the same parameters as in the shown
+test_config.php file:
$ PHPBB_TEST_DBMS='mysqli' PHPBB_TEST_DBHOST='localhost' \
PHPBB_TEST_DBNAME='database' PHPBB_TEST_DBUSER='user' \
@@ -46,16 +48,18 @@ will run phpunit with the same parameters as in the shown test_config.php file:
Running
=======
-Once the prerequisites are installed, run the tests from the project root directory (above phpBB):
+Once the prerequisites are installed, run the tests from the project root
+directory (above phpBB):
$ phpunit
Slow tests
--------------
+
Certain tests, such as the UTF-8 normalizer or the DNS tests tend to be slow.
Thus these tests are in the `slow` group, which is excluded by default. You can
-enable slow tests by copying the phpunit.xml.all file to phpunit.xml. If you only
-want the slow tests, run:
+enable slow tests by copying the phpunit.xml.all file to phpunit.xml. If you
+only want the slow tests, run:
$ phpunit --group slow
@@ -63,4 +67,4 @@ More Information
================
Further information is available on phpbb wiki:
-http://wiki.phpbb.com/display/DEV/Unit+Tests
+http://wiki.phpbb.com/Unit_Tests