CodeIgniter Forums
Automatic Testing of Controllers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Automatic Testing of Controllers (/thread-26048.html)



Automatic Testing of Controllers - El Forum - 01-04-2010

[eluser]Eric Cope[/eluser]
I am currently using the unit test module (extended of course) to test my libraries and models. What ways exist to test controllers automatically?


Automatic Testing of Controllers - El Forum - 01-04-2010

[eluser]Eric Cope[/eluser]
So I had an idea. Since all of my controllers feed the logs on error, if I can trigger the controller, I can read the logs after the test and check for errors, warnings, etc.

Is there a tool I can "browse" to a page, submit via POST, and trigger AJAX, from the command line?


Automatic Testing of Controllers - El Forum - 01-04-2010

[eluser]Eric Cope[/eluser]
Here is one way - http://netevil.org/blog/2006/nov/http-post-from-php-without-curl