2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/test
2010-04-25 14:48:12 +00:00
..
2010-04-25 14:48:12 +00:00

README (English)
--------------------------------
This directory contains unit tests for Dolibarr code.
To use them, you must:

* Install PHPUnit
If using Eclipse, you must also add an entry as external tool for phpunit programm with:
-Name:      PHPUnit
-Location:  /usr/bin/php
-Workspace: ${workspace_loc}
-Arguments: /usr/bin/phpunit ${resource_path}

* Run unit tests: 
Run > phpunit TestFile.php
If using Eclipse, select the test and click on menu "Run external tools and choose PHPUnit".

* List code coverage by unit tests:
Run > phpunit --coverage-html ./report TestFile.php
Note that xdebug must be installed for this feature to work.