Tuesday, December 20, 2011

Re: What's all this SQL being run when running a controller unit test plan?

One more thing, I noticed this just now.  When running the tests, these are the results that I have found.

  • FAILED
    Equal expectation fails with member [0] with member [0] with member [floatvalue] at character 14 with [3.1415926535898] and [3.14159265358979] at [D:\Inetpub\wwwroot-clinical\pythia-admit-lookup\cake\tests\cases\libs\controller\controller.test.php line 732]
    ControllerGroupTest -> D:\Inetpub\wwwroot-clinical\pythia-admit-lookup\cake\tests\cases\libs\controller\controller.test.php -> ControllerTest -> testPaginateFieldsDouble
  • SKIPPED Skipping [ControllerTest] Need a non-existent AppController at [D:\Inetpub\wwwroot-clinical\pythia-admit-lookup\cake\tests\cases\libs\controller\controller.test.php line 1129]
  • SKIPPED Skipping [ControllerTest] Need a non-existent AppController at [D:\Inetpub\wwwroot-clinical\pythia-admit-lookup\cake\tests\cases\libs\controller\controller.test.php line 1194]
  • SKIPPED Skipping [PagesControllerTest] Need a non-existent AppController at [D:\Inetpub\wwwroot-clinical\pythia-admit-lookup\cake\tests\cases\libs\controller\pages_controller.test.php line 52]
  • SKIPPED Skipping [ComponentTest] Need a non-existent AppController at [D:\Inetpub\wwwroot-clinical\pythia-admit-lookup\cake\tests\cases\libs\controller\component.test.php line 463]
  • SKIPPED Skipping [ComponentTest] Need a non-existent AppController at [D:\Inetpub\wwwroot-clinical\pythia-admit-lookup\cake\tests\cases\libs\controller\component.test.php line 501]
  • SKIPPED Skipping [ComponentTest] Need a non-existent AppController at [D:\Inetpub\wwwroot-clinical\pythia-admit-lookup\cake\tests\cases\libs\controller\component.test.php line 575]
  • SKIPPED APP_CONTROLLER_EXISTS cannot run. Skipping [ControllerMergeVarsTestCase] at [D:\Inetpub\wwwroot-clinical\pythia-admit-lookup\cake\tests\cases\libs\controller\controller_merge_vars.test.php line 137]

Is it normal that the first test failed?  The path to the specific file points to the cake directory, not something in app.

On Tue, Dec 20, 2011 at 6:42 PM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
I am going through unit test portion of the cookbook (I am using CakePHP 1.3), I go to the test.php page and click on the controller link there and wait...

Then I see a page displayed with a slew of SQL at the bottom, which I copied to show below:

Why is that SQL there?  On what database is it being run?  My application connects to a MS-SQL database and that was untouched (was worried for a sec there).  Maybe I am getting ahead of myself, but could someone shed some light on this?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: