So you’ve coded a few plugins and you’re confident that your code just works. Good luck with that. If like me you err on the side of paranoia and you want to be damn sure your code works then keep reading.
There’s a very good article – Unit Testing WordPress Plugins: The Right Way – which explains how to set up both PhpUnit and the wordpress-test framework.
Other articles worth reading on this topic will be updated below as and when I find them:
Quick tip, wherever you have set up the wordpress-tests, in my case http://localhost/wordpress-tests/, these need to be running in a browser before your tests will run properly.