Tim,

You will also need this patch to test.php for this to work. As for the
test hooks such as setRedirectURL() etc I have them
as part of out test suite, separate from the core cakephp code. Let me
know if you need those, but they simply keep track of
the args passed to them and allow assertions to check if the right
args were passed.

--- a/website/webroot/test.php  Fri Sep 12 01:55:33 2008 +0000
+++ b/website/webroot/test.php  Sat Nov 08 09:43:32 2008 +0000
@@ -26,6 +26,8 @@
  * @lastmodified       $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun
2008) $
  * @license                    http://www.opensource.org/licenses/opengroup.php
The Open Group Test Suite License
  */
+define('TEST_SUITE', true);
+
 error_reporting(E_ALL);
 set_time_limit(0);
 ini_set('memory_limit','128M');
@@ -61,7 +63,6 @@
  *
  */
        if (!defined('CAKE_CORE_INCLUDE_PATH')) {
-//             define('CAKE_CORE_INCLUDE_PATH', ROOT);
                define('CAKE_CORE_INCLUDE_PATH', '../../cakephp');
        }

@@ -148,6 +149,9 @@
 if (isset($_GET['group'])) {
        if ('all' == $_GET['group']) {
                TestManager::runAllTests(CakeTestsGetReporter());
+               if ($analyzeCodeCoverage) {
+                       CodeCoverageManager::report();
+               }
        } else {
                if ($analyzeCodeCoverage) {
                        CodeCoverageManager::start($_GET['group'],
CakeTestsGetReporter());


On Nov 7, 9:22 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hey there, thanks for the hard work!
>
> The constant that you need to look at is CAKEPHP_UNIT_TEST_EXECUTION.
> I will check out your diff today.
>
> Thanks,
> Tim
>
> http://debuggable.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to