Setting up the perfect CodeIgniter & TDD environment

codeigniter, php, testing

As CodeIgniter has little built-in test support, it’s often difficult setting up a good environment to allow Test-driven Development using SimpleTest and the CodeIgniter framework. I’ve been using Ruby on Rails a lot recently, and I was inspired by the fantastic built in integration with unit, functional and integration tests, so when I returned to CodeIgniter, I delved into the deep dark world of setting up the perfect CodeIgniter and TDD environmen

Read more »

Testing RESTful response types

ruby, ruby on rails, testing

I’ve been doing a lot of Rails development recently as part of my new job (our whole infrastructure is built on Rails, you see), and have been practicing Test-driven Development religiously. As part of this, I’ve been developing an API that returns more than one response format, and I was looking to find out how to test if the correct response type is being returned.

Read more »