CodeIgniter Forums
How do you use the Unit Testing LIbrary? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: How do you use the Unit Testing LIbrary? (/showthread.php?tid=436)



How do you use the Unit Testing LIbrary? - kilishan - 12-04-2014

So, I've always had issues coming up with an effective way to incorporate the Unit Testing Library that CodeIgniter ships with. I would love to update the docs with a strategy for using the classes in a project, and not just the reference that's in there currently. However, I'm not sure what the best strategy would be. 

That's why I need your help.


I would love to hear your use cases and strategies for it's long-term use in a project. Or do you find it can't be too effective long term and is better for quick checks? 


RE: How do you use the Unit Testing LIbrary? - includebeer - 12-07-2014

I only used this library for one project. We made a controller named "test" where we could test the functions from our models. On the production site this controller was disabled. Over time, we stopped updating this test controller and now we're not using it anymore.

I'm not sure if it's the way this library is supposed to be used.


RE: How do you use the Unit Testing LIbrary? - no1 - 12-08-2014

post some guide plz!!! i want learn good about unit test


RE: How do you use the Unit Testing LIbrary? - Chroma - 12-09-2014

This is something I would be interested in too.

I do my own thing and would like to know what the best practice is/should be.