views:

36

answers:

2

I've been playing with Symfony's testing methods. They give you the results in the command line (for instance, green text is for OK and red text is for NOT OK). It also tells you the cause of the error.

Is there something similar to this in CodeIgniter and CakePHP?

+1  A: 

The best tool out there that I've seen for codeigniter is a library for SimpleTest see http://codeigniter.com/wiki/SimpleTester_-_Unit_testing_library/

Ken Struys
+1  A: 

Hello janoChen.

With cakephp, you can use e.g. simpletest as a plugin (installation a download/renaming). In fact all the cake-core tests work with it. In cake, once you have written the tests, you can run them in a one-click manner via your browser (yes, you get your green bars, too :-) ). If I remember correctly, you can run the tests from the shell, too. If not you can create your own cake-shell as it is easy to extend.

Kind regards, Benjamin.

benjamin