[limb-svn] r5995 - in 3.x/trunk/limb: cms/tests/cases session/tests/cases tree/tests/cases web_app/tests/cases/db
svn at limb-project.com
svn at limb-project.com
Fri Jun 15 14:55:31 MSD 2007
Author: pachanga
Date: 2007-06-15 14:55:31 +0400 (Fri, 15 Jun 2007)
New Revision: 5995
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5995
Added:
3.x/trunk/limb/cms/tests/cases/.ignore.php
3.x/trunk/limb/session/tests/cases/.ignore.php
3.x/trunk/limb/web_app/tests/cases/db/.ignore.php
Modified:
3.x/trunk/limb/tree/tests/cases/.ignore.php
Log:
-- better tests isolation in case when there's no compatible db test dump
Added: 3.x/trunk/limb/cms/tests/cases/.ignore.php
===================================================================
--- 3.x/trunk/limb/cms/tests/cases/.ignore.php (rev 0)
+++ 3.x/trunk/limb/cms/tests/cases/.ignore.php 2007-06-15 10:55:31 UTC (rev 5995)
@@ -0,0 +1,12 @@
+<?php
+require_once(dirname(__FILE__) . '/../../common.inc.php');
+
+$type = lmbToolkit :: instance()->getDefaultDbConnection()->getType();
+$ignore = !file_exists(dirname(__FILE__) . '/.fixture/init_tests.' . $type);
+$test_dir = basename(dirname(__FILE__));
+
+if($ignore)
+ echo "\nCMS package '$test_dir' tests are skipped!(no compatible database fixture found for '$type' connection)\n\n";
+
+return $ignore;
+?>
Added: 3.x/trunk/limb/session/tests/cases/.ignore.php
===================================================================
--- 3.x/trunk/limb/session/tests/cases/.ignore.php (rev 0)
+++ 3.x/trunk/limb/session/tests/cases/.ignore.php 2007-06-15 10:55:31 UTC (rev 5995)
@@ -0,0 +1,12 @@
+<?php
+require_once(dirname(__FILE__) . '/../../common.inc.php');
+
+$type = lmbToolkit :: instance()->getDefaultDbConnection()->getType();
+$ignore = !file_exists(dirname(__FILE__) . '/.fixture.' . $type);
+$test_dir = basename(dirname(__FILE__));
+
+if($ignore)
+ echo "\nSESSION package '$test_dir' tests are skipped!(no compatible database fixture found for '$type' connection)\n\n";
+
+return $ignore;
+?>
Modified: 3.x/trunk/limb/tree/tests/cases/.ignore.php
===================================================================
--- 3.x/trunk/limb/tree/tests/cases/.ignore.php 2007-06-15 10:54:41 UTC (rev 5994)
+++ 3.x/trunk/limb/tree/tests/cases/.ignore.php 2007-06-15 10:55:31 UTC (rev 5995)
@@ -1,5 +1,12 @@
<?php
require_once(dirname(__FILE__) . '/../../common.inc.php');
-return !file_exists(dirname(__FILE__) . '/../../init/init_tests.' .
- lmbToolkit :: instance()->getDefaultDbConnection()->getType());
+
+$type = lmbToolkit :: instance()->getDefaultDbConnection()->getType();
+$ignore = !file_exists(dirname(__FILE__) . '/../../init/init_tests.' . $type);
+$test_dir = basename(dirname(__FILE__));
+
+if($ignore)
+ echo "\nTREE package '$test_dir' tests are skipped!(no compatible database fixture found for '$type' connection)\n\n";
+
+return $ignore;
?>
Added: 3.x/trunk/limb/web_app/tests/cases/db/.ignore.php
===================================================================
--- 3.x/trunk/limb/web_app/tests/cases/db/.ignore.php (rev 0)
+++ 3.x/trunk/limb/web_app/tests/cases/db/.ignore.php 2007-06-15 10:55:31 UTC (rev 5995)
@@ -0,0 +1,12 @@
+<?php
+require_once(dirname(__FILE__) . '/../../../common.inc.php');
+
+$type = lmbToolkit :: instance()->getDefaultDbConnection()->getType();
+$ignore = !file_exists(dirname(__FILE__) . '/.fixture.' . $type);
+$test_dir = basename(dirname(__FILE__));
+
+if($ignore)
+ echo "\nWEB_APP package '$test_dir' tests are skipped!(no compatible database fixture found for '$type' connection)\n\n";
+
+return $ignore;
+?>
More information about the limb-svn
mailing list