mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch 'ticket/p/9593' into develop-olympus
* ticket/p/9593: [ticket/9593] A readme file for unit tests and running unit tests.
This commit is contained in:
commit
7a0b554724
1 changed files with 33 additions and 0 deletions
33
tests/RUNNING_TESTS.txt
Normal file
33
tests/RUNNING_TESTS.txt
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
Running Tests
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Prerequisites
|
||||||
|
-------------
|
||||||
|
|
||||||
|
PHPUnit
|
||||||
|
=======
|
||||||
|
|
||||||
|
phpBB unit tests use PHPUnit framework. Version 3.3 or better is required
|
||||||
|
to run the tests. PHPUnit prefers to be installed via PEAR; refer to
|
||||||
|
http://www.phpunit.de/ for more information.
|
||||||
|
|
||||||
|
PHP extensions
|
||||||
|
==============
|
||||||
|
|
||||||
|
Unit tests use several PHP extensions that board code does not use. Currently
|
||||||
|
the following PHP extensions must be installed and enabled to run unit tests:
|
||||||
|
|
||||||
|
- ctype
|
||||||
|
|
||||||
|
Running
|
||||||
|
-------
|
||||||
|
|
||||||
|
Once the prerequisites are installed, run the tests from tests directory:
|
||||||
|
|
||||||
|
$ phpunit all_tests.php
|
||||||
|
|
||||||
|
More Information
|
||||||
|
----------------
|
||||||
|
|
||||||
|
Further information is available on phpbb wiki:
|
||||||
|
http://wiki.phpbb.com/display/DEV/Unit+Tests
|
Loading…
Add table
Reference in a new issue