Update unit tests
This commit is contained in:
parent
d30ccab54f
commit
05a1a45232
@ -46,7 +46,6 @@ if (empty($user->id))
|
|||||||
* @covers User
|
* @covers User
|
||||||
* @covers Translate
|
* @covers Translate
|
||||||
* @covers Conf
|
* @covers Conf
|
||||||
* @covers Interfaces
|
|
||||||
* @covers CommonObject
|
* @covers CommonObject
|
||||||
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -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');
|
||||||
|
|||||||
@ -22,5 +22,7 @@ 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 528MB.
|
Increase your PHP memory (memory_limit in php.ini) to 528MB.
|
||||||
|
Check that you use the "mysqli" driver in your conf.php file (otherwise
|
||||||
|
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
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
<file>../htdocs/lib/databases/mssql.lib.php</file>
|
<file>../htdocs/lib/databases/mssql.lib.php</file>
|
||||||
<file>../htdocs/lib/databases/pgsql.lib.php</file>
|
<file>../htdocs/lib/databases/pgsql.lib.php</file>
|
||||||
<file>../htdocs/lib/databases/mysql.lib.php</file>
|
<file>../htdocs/lib/databases/mysql.lib.php</file>
|
||||||
|
<!-- <file>../htdocs/lib/databases/mysqli.lib.php</file> -->
|
||||||
</blacklist>
|
</blacklist>
|
||||||
<whitelist>
|
<whitelist>
|
||||||
<directory suffix=".class.php">../htdocs/</directory>
|
<directory suffix=".class.php">../htdocs/</directory>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user