mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/10839] Fix note about running slow tests and build task
PHPBB3-10839
This commit is contained in:
parent
8a9b1a8fed
commit
333120a992
2 changed files with 9 additions and 6 deletions
|
@ -67,7 +67,6 @@
|
|||
<exec dir="."
|
||||
command="phpBB/vendor/bin/phpunit
|
||||
--log-junit build/logs/phpunit.xml
|
||||
--configuration phpunit.xml.all
|
||||
--group slow
|
||||
--coverage-clover build/logs/clover-slow.xml
|
||||
--coverage-html build/coverage-slow"
|
||||
|
|
|
@ -110,12 +110,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
|
||||
-----------------
|
||||
|
||||
|
@ -136,10 +140,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.
|
||||
|
|
Loading…
Add table
Reference in a new issue