I have never really done any serious testing other then writing some simple Java unit tests at University. I want to try and get into the practice of testing so I want to start small on this simple website that I am currently developing.
The site is built using CodeIgniter and doesn’t really do any dynamic things other then the contact form logging what has been entered into a database.
I have written two unit tests for this controller using TOAST which test the contact model’s insert and retrieve functions which you can see on pastebin.
What other testing practices would you recommend and what could be applied to such a small web application?
before you write test, you need to learn how to write a testable code.
this is a good start blog post
google video about testable code
another google video about testable code