News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Debuggable Blog:
How To Execute Only Specific Test Methods in CakePHP Unit Tests
June 19, 2008 @ 12:52:45

On the Debuggable blog today, Tim Koschutki shows how you can run just the tests you want on your CakePHP application without having to worry about sorting their results out manually.

Most of us familiar with unit testing with CakePHP and SimpleTest know that SimpleTest always executes all methods starting with the string "test". This can be problematic sometimes. At this point you have two options: create a new testcase, put an "x" before every other test name or use the following tip.

His tip puts another layer on top of the usual testing and uses the getTests method to define with of the tests need to be run. If it's defined, SimpleTest will only execute those.

0 comments voice your opinion now!
simpletest unittest cakephp framework gettests method



Similar Posts

Jonathan Snook's Blog: CakePHP: Setting Default Values

Mike Naberenzy\'s Blog: My First php|architect Article (Zend Framework)

Evert Pot's Blog: Preventing XSS in Javascript strings

Sebastian Bergmann's Blog: Tutorial at ZendCon 2007

Stubbles Blog: Stubbles 0.2.0 released


Community Events











Don't see your event here?
Let us know!


release framework book zendframework package PHP5 security releases application code mysql database developer example job PEAR conference ajax zend cakephp

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework