CodeIgniter Forums
SimpleTest with Code Igniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: SimpleTest with Code Igniter (/showthread.php?tid=21395)



SimpleTest with Code Igniter - El Forum - 08-08-2009

[eluser]Eduardo Hertz[/eluser]
Hi everyone.

I'm reading a book about Extreme Programming and I'm starting to try to use it.
At first, I'm trying to use TDD in my projects.
I checked 2 libraries which helps in TDD: PHPUnit and SimpleTest. I preferred the last one.

I've already integrated it into CI and now comes the big question:

How can I test my controllers?

Thank you.


SimpleTest with Code Igniter - El Forum - 08-08-2009

[eluser]Eduardo Hertz[/eluser]
Anybody can help me???


SimpleTest with Code Igniter - El Forum - 08-09-2009

[eluser]bigtony[/eluser]
Have you tried CI's built-in [url="http://ellislab.com/codeigniter/user-guide/libraries/unit_testing.html"]unit testing[/url] class?


SimpleTest with Code Igniter - El Forum - 08-29-2010

[eluser]matt2012[/eluser]
I test my controllers by web testing the front end (including logged in areas) see my response here http://ellislab.com/forums/viewreply/794195/ - basically using Eric Barnes codeigniter-simpletest integration