Update doc

This commit is contained in:
Laurent Destailleur 2013-09-09 03:23:56 +02:00
parent ebfa63adf5
commit 94b6defd8c
2 changed files with 5 additions and 3 deletions

View File

@ -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. Note that xdebug must be installed for this feature to work.
* Generate a report of Unit tests code coverage among all Dolibarr classes: * 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 > 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: If there is a timeout before end, try this:
> cd test > 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 puis renice -10 du process php

View File

@ -13,6 +13,8 @@
<php> <php>
<ini name="max_execution_time" value="600"/> <ini name="max_execution_time" value="600"/>
<ini name="max_input_time" value="600"/> <ini name="max_input_time" value="600"/>
<ini name="memory_limit" value="4G" />
<!-- Also don't forget to change suhosin.memory_limit=4G -->
</php> </php>
<filter> <filter>
<blacklist> <blacklist>