diff --git a/test/README b/test/README index ebfa1786eba..a5280277344 100644 --- a/test/README +++ b/test/README @@ -37,13 +37,13 @@ If using Eclipse, select the test and click on menu "Run external tools and choo 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. +Increase your PHP memory (memory_limit and suhosin.memory_limit in php.ini) to 4G. > cd test -> 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 +> phpunit -d suhosin.memory_limit=4G -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 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 +> php -d suhosin.memory_limit=4G -d memory_limit=-1 -d max_input_time=0 -d max_execution_time=0 /usr/bin/phpunit -d suhosin.memory_limit=4G -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 diff --git a/test/phpunit/phpunittest.xml b/test/phpunit/phpunittest.xml index 2fff5d2889b..8237367ebef 100644 --- a/test/phpunit/phpunittest.xml +++ b/test/phpunit/phpunittest.xml @@ -13,6 +13,8 @@ + +