i have the same problem. bake adds the loadmodeltest() function which seems no longer supported. the tutorial in the wiki just tests a cake method itself. if i try to setup/teardown a model of my app the classes are not found.
same question sonic asked a while ago: http://groups.google.com/group/cake-php/browse_thread/thread/243c2b9bc07fe6ee/02a60d242d549e61?q=simpletest&rnum=1https://cakeforge.org/plugins/scmsvn/viewcvs.php/?root=testsuite the bugs dirk described here... http://groups.google.com/group/cake-php/browse_thread/thread/8815708bcb1c8b/3940d165c3a74552?q=dirk+olbertz&rnum=2#3940d165c3a74552 ... are from duplicate code in app/webroot/index.php and app/webroot/test/index.php. just add the definition of CORE_PATH from app/webroot/index.php to app/webroot/test/index.php and it works: if (!defined('CORE_PATH')) { if (function_exists('ini_set')) { ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS); define('APP_PATH', null); define('CORE_PATH', null); } else { define('APP_PATH', ROOT . DS . APP_DIR . DS); define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS); } } it would be nice to fix this by using the same piece of code. also there is a closed ticket about why the testsuite isn't included: https://trac.cakephp.org/ticket/254 i don't agree to that. the testsuite wouldn't bloat a cake system without unittests. it would help getting more people writing tests for their webapps and have a better sleep. what's about contributing to work on the testsuite? cheers, timo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
