Add phpunit tests
This commit is contained in:
parent
20c130270b
commit
e5122829bd
@ -48,8 +48,8 @@ class MyTestSuite
|
|||||||
{
|
{
|
||||||
$suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
|
$suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
|
||||||
|
|
||||||
// require_once dirname(__FILE__).'/CommonObjectTest.php';
|
require_once dirname(__FILE__).'/CommonObjectTest.php';
|
||||||
// $suite->addTestSuite('CommonObjectTest');
|
$suite->addTestSuite('CommonObjectTest');
|
||||||
|
|
||||||
require_once dirname(__FILE__).'/AdherentTest.php';
|
require_once dirname(__FILE__).'/AdherentTest.php';
|
||||||
$suite->addTestSuite('AdherentTest');
|
$suite->addTestSuite('AdherentTest');
|
||||||
|
|||||||
18
test/README
18
test/README
@ -1,6 +1,13 @@
|
|||||||
README (English)
|
README (English)
|
||||||
--------------------------------
|
--------------------------------
|
||||||
This directory contains unit tests for Dolibarr code.
|
This directory contains unit tests and docs for
|
||||||
|
Dolibarr quality analysis.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
PHPUNIT
|
||||||
|
-------
|
||||||
|
|
||||||
To use them, you must:
|
To use them, you must:
|
||||||
|
|
||||||
* Install PHPUnit
|
* Install PHPUnit
|
||||||
@ -26,3 +33,12 @@ Check that you use the "mysqli" driver in your conf.php file (otherwise
|
|||||||
edit the file phpunittest.xml).
|
edit the file phpunittest.xml).
|
||||||
Run > phpunit --configuration ./phpunittest.xml --coverage-html ./report MyTestSuite.php
|
Run > phpunit --configuration ./phpunittest.xml --coverage-html ./report MyTestSuite.php
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
PHPDEPEND
|
||||||
|
---------
|
||||||
|
* Install PDepend
|
||||||
|
|
||||||
|
* Laucnh PDepend analysis:
|
||||||
|
pdepend --summary-xml=./report/summary.xml --jdepend-chart=./report/jdepend.svg --overview-pyramid=./report/pyramid.svg /yourdir
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user