From 53f512b7dca7650f51da2a5acff634d8ecd90b94 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 10 Jun 2013 09:54:23 +0200 Subject: [PATCH] Update doc --- test/README | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/README b/test/README index 9f588fa33d9..dcfa2b0e5a5 100644 --- a/test/README +++ b/test/README @@ -33,18 +33,18 @@ If using Eclipse, select the test and click on menu "Run external tools and choo * Generate a report of Unit tests code coverage among tested classes only: > cd test -> phpunit -d memory_limit=-1 -d max_execution_time=600 -d max_input_time=600 --configuration ./phpunit/phpunittest.xml --coverage-html ./report --coverage-clover ./report/logs/phpunit.coverage.xml --log-junit ./report/logs/phpunit.xml phpunit/MyClassTest.php +> phpunit -d memory_limit=-1 -d max_input_time=600 -d max_execution_time=600 --configuration ./phpunit/phpunittest.xml --coverage-html ./report --coverage-clover ./report/logs/phpunit.coverage.xml --log-junit ./report/logs/phpunit.xml phpunit/MyClassTest.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 512MB. 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 +> phpunit -d memory_limit=-1 -d max_input_time=0 -d max_execution_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 If there is a timeout before end, try this: > cd test -> php -d max_input_time=0 -d max_execution_time=0 /usr/bin/phpunit -d memory_limit=-1 -d max_input_time=0 -d max_execution_time=0 --configuration ./phpunit/phpunittest.xml --coverage-html ./report phpunit/AllTests.php +> php -d memory_limit=-1 -d max_input_time=0 -d max_execution_time=0 /usr/bin/phpunit -d memory_limit=-1 -d max_input_time=0 -d max_execution_time=0 --configuration ./phpunit/phpunittest.xml --coverage-html ./report phpunit/AllTests.php puis renice -10 du process php