mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
| .. | ||
| FactureTest.php | ||
| MyTestSuite.php | ||
| README | ||
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.