From 0471b4e5484a8290434ffaa02f51b6d7f2d27ec7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 5 Aug 2012 13:30:12 +0200 Subject: [PATCH] Update doc --- test/README | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/README b/test/README index 119800f7c82..9f588fa33d9 100644 --- a/test/README +++ b/test/README @@ -1,7 +1,6 @@ README (English) -------------------------------- -This directory contains unit tests and docs for -Dolibarr quality analysis. +This directory contains unit tests and docs for Dolibarr quality analysis. @@ -17,6 +16,15 @@ If using Eclipse, you must also add an entry as external tool for phpunit progra -Workspace: ${workspace_loc} -Arguments: Linux: /usr/bin/phpunit ${resource_path} Windows: "C:\Program Files (x86)\PHPUnit-3.4.9\phpunit.php" ${resource_path} +If not using Eclipse, to install PHPUnit manually: +> sudo apt-get remove phpunit +> sudo apt-get upgrade pear +> sudo pear channel-discover pear.phpunit.de +> sudo pear channel-discover pear.symfony-project.com +> sudo pear channel-discover components.ez.no +> sudo pear update-channels +> sudo pear upgrade-all +> sudo pear install --alldeps phpunit/PHPUnit * Run Unit tests: > cd test @@ -30,7 +38,6 @@ 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 512MB. -Check that you use the "mysqli" driver in your conf.php file (otherwise edit the file phpunittest.xml). Remove all files into dolibarr root found with "find . | grep CVS\/Base\/ | grep \.php" > cd test > phpunit -d memory_limit=-1 -d max_execution_time=0 -d max_input_time=0 --configuration ./phpunit/phpunittest.xml --coverage-html ./report --coverage-clover ./report/logs/phpunit.coverage.xml --log-junit ./report/logs/phpunit.xml phpunit/AllTests.php