mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
23 lines
881 B
Plaintext
23 lines
881 B
Plaintext
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: Linux: /usr/bin/php
|
|
Windows: C:\Program Files (x86)\wamp\bin\php\php5.2.8\php.exe
|
|
-Workspace: ${workspace_loc}
|
|
-Arguments: Linux: /usr/bin/phpunit ${resource_path}
|
|
Windows: "C:\Program Files (x86)\PHPUnit-3.4.9\phpunit.php" ${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".
|
|
|
|
* Generate a report of Unit tests code coverage:
|
|
Run > phpunit [--configuration ./phpunittestok.xml] --coverage-html ./report MyTestSuite.php
|
|
Note that xdebug must be installed for this feature to work.
|
|
|