Welcome Guest, Not a member yet? Register   Sign In
SimpleTest with Code Igniter
#1

[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.
#2

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

[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?
#4

[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




Theme © iAndrew 2016 - Forum software by © MyBB