mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Update doc
This commit is contained in:
parent
ebfa63adf5
commit
94b6defd8c
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
<php>
|
||||
<ini name="max_execution_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>
|
||||
<filter>
|
||||
<blacklist>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user