diff --git a/build/build.xml b/build/build.xml index 79b6096c97..9a04d4efdb 100644 --- a/build/build.xml +++ b/build/build.xml @@ -67,7 +67,6 @@ - - - - - ./tests - ./tests/lint_test.php - - - ./tests/lint_test.php - - - - - - ./tests - - - ./phpBB/includes/ - ./phpBB/phpbb/ - - ./phpBB/includes/captcha/ - - - - diff --git a/phpunit.xml.dist b/phpunit.xml.dist index dd039fb567..e65fdb3938 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -17,6 +17,9 @@ ./tests/functional ./tests/lint_test.php + + ./tests/functional + ./tests/lint_test.php @@ -24,7 +27,6 @@ - functional slow diff --git a/phpunit.xml.functional b/phpunit.xml.functional deleted file mode 100644 index ead8f4af68..0000000000 --- a/phpunit.xml.functional +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - ./tests - ./tests/functional - ./tests/lint_test.php - - - ./tests/lint_test.php - - - - - - functional - - - - - - ./tests - - - ./phpBB/includes/ - ./phpBB/phpbb/ - - ./phpBB/includes/captcha/ - - - - diff --git a/tests/RUNNING_TESTS.md b/tests/RUNNING_TESTS.md index 0778046141..d638c86859 100644 --- a/tests/RUNNING_TESTS.md +++ b/tests/RUNNING_TESTS.md @@ -128,12 +128,16 @@ 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 +Thus these tests are in the `slow` group, which is excluded by default. If you only want the slow tests, run: $ phpBB/vendor/bin/phpunit --group slow +If you want all tests, run: + + $ phpBB/vendor/bin/phpunit --group __nogroup__,functional,slow + + Functional tests ----------------- @@ -154,10 +158,10 @@ on which to run tests. $phpbb_functional_url = 'http://localhost/phpBB3/'; -To then run the tests, you run PHPUnit, but use the phpunit.xml.functional -config file instead of the default one. Specify this through the "-c" option: +Functional tests are automatically run, if '$phpbb_functional_url' is configured. +If you only want the functional tests, run: - $ phpBB/vendor/bin/phpunit -c phpunit.xml.functional + $ phpBB/vendor/bin/phpunit --group functional This will change your board's config.php file, but it makes a backup at config_dev.php, so you can restore it after the test run is complete.