Update unit tests

This commit is contained in:
Laurent Destailleur 2010-05-05 18:18:09 +00:00
parent d30ccab54f
commit 05a1a45232
4 changed files with 5 additions and 3 deletions

View File

@ -46,7 +46,6 @@ if (empty($user->id))
* @covers User
* @covers Translate
* @covers Conf
* @covers Interfaces
* @covers CommonObject
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
*/

View File

@ -48,8 +48,8 @@ class MyTestSuite
{
$suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
require_once dirname(__FILE__).'/CommonObjectTest.php';
$suite->addTestSuite('CommonObjectTest');
// require_once dirname(__FILE__).'/CommonObjectTest.php';
// $suite->addTestSuite('CommonObjectTest');
require_once dirname(__FILE__).'/AdherentTest.php';
$suite->addTestSuite('AdherentTest');

View File

@ -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:
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

View File

@ -8,6 +8,7 @@
<file>../htdocs/lib/databases/mssql.lib.php</file>
<file>../htdocs/lib/databases/pgsql.lib.php</file>
<file>../htdocs/lib/databases/mysql.lib.php</file>
<!-- <file>../htdocs/lib/databases/mysqli.lib.php</file> -->
</blacklist>
<whitelist>
<directory suffix=".class.php">../htdocs/</directory>