Unit Testing WordPress Plugins

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.

Advertisements
Posted in wordpress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: