dolibarr/test
2010-04-29 15:23:21 +00:00
..
.cvsignore New: Add phpunit tests 2010-04-26 23:20:14 +00:00
AdherentTest.php Qual: Uniformise code. user class use id in first param of fetch 2010-04-28 07:31:34 +00:00
CommandeTest.php Qual: Uniformise code. user class use id in first param of fetch 2010-04-28 07:31:34 +00:00
ContratTest.php according to new tree directory 2010-04-28 08:35:57 +00:00
FactureTest.php Qual: Uniformise code. user class use id in first param of fetch 2010-04-28 07:31:34 +00:00
MyTestSuite.php Qual: Uniformise code. user class use id in first param of fetch 2010-04-28 07:31:34 +00:00
phpunittest.xml New: Add phpunit tests 2010-04-27 11:21:34 +00:00
PropalTest.php Fix: move class to class directory 2010-04-28 17:30:59 +00:00
README New: Add phpunit tests 2010-04-27 11:21:34 +00:00
UserTest.php according to new tree directory 2010-04-29 15:23:21 +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:  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 among tested classes only:
Run > phpunit --coverage-html ./report MyTestSuite.php
Note that xdebug must be installed for this feature to work.

* Generate a report of Unit tests code coverage among all Dolibarr classes:
Increase your PHP memory (memory_limit in php.ini) to 528MB.
Run > phpunit --configuration ./phpunittest.xml --coverage-html ./report MyTestSuite.php