Update doc
This commit is contained in:
parent
386a1dcb55
commit
0471b4e548
13
test/README
13
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user