I have, from time to time, had immense problems running tests on
models. I keep getting errors about tables being missing on seemingly
any random table, including ones in the core tests.

I believe I have found out how these errors occur. They happen when
you have tried to run a test with a syntax error or similar fatal
problem in the source. For me this is quite common since I cane easily
forget a ; or two. Since the whole test-run died half way through, I
now have some tables still in my test database but some where never
created before the script died.

The quick fix = Clear the test database of all tables. (works for me
every time)

I guess that Cake checks the database and if it contains tables it is
more careful and does not want to disturb your schema. This is a good
thing if you happen to run a test on your main database. Cake won't
wipe away aan important table by misstake.

/Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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