The unit tester that comes with the latest version of CI that I used was bad, it just checked true or not.
I found this interesting project, which, apparently, was supported at least until last year:
http://jensroland.com/projects/toast/
Maybe there is something there to help you get started, maybe in the readme files - if there isnโt the original message here where this idea seems to have come from.
http://codeigniter.com/forums/viewthread/76703
You can start by checking that your models return the expected set of values. those. to say that "get the first 10 books" actually returns 10 records - this means that, however, configure the test database and configure (fill with test data) and, if possible, delete this database. This is a bit of a snap, but in an MVC situation, when you start with TDD, it may be easiest to circle your head.
TDD (i.e. the idea of โโdeveloping a test / code in this order) makes the most sense when creating your own classes, which you can consider โhelpersโ in a typical CI setup.
Cups
source share