&debug=1 does not work when testing controllers with the testAction method using the web runner.
If you call the testAction method any debugs do not work. If you remove the testAction method call it works again and prints out your debug just fine. --debug does work in the CLI still though with testAction so you can use that instead. Anyone know how to get debug to work with ControllerTestCase and testAction? Thanks. On Mar 5, 9:00 pm, andrewperk <[email protected]> wrote: > Not even 5 seconds after I make this post I see that I should put > &debug=1 in the URL because the tests swallow output. Sorry. > > On Mar 5, 8:55 pm, andrewperk <[email protected]> wrote: > > > > > > > > > Hello, in the past during one a test case I used to be able to call > > the debug method and it would output the data on to the testing web > > runner and display the information like so: > > > function testSomething() { > > $result = 'My result'; > > debug($result); > > > } > > > This does not work now. I can't seem to figure out how to display any > > data to the browser during tests. I've tried echo, print_r, debug, > > echo debug in my test cases and it doesn't display anything. > > > I'm using cake 2.1. Is there any way to display some output from one > > of my test cases during a test? > > > I have a failing test where I'm seeing if two arrays are equal and I > > just want to output the array to see the data and structure but debug > > is no longer working. > > > Thanks. -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
