Skip to content
Snippets Groups Projects
Commit 05a1a452 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Update unit tests

parent d30ccab5
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*/
......
......@@ -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');
......
......@@ -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
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment