Plugin UnitTest – How To
Assuming you have a separate WordPress installation for your project (eg.
/var/www/my-project ) with your plugin you want to test in
/var/www/my-project/wp-content/plugins/my-plugin. PHPUnit and SVN needs also to be installed on your system.
1. Get the WordPress test environment
Get the WordPress test environment as described here in step 1 and 2. You may want to use a separate directory for those stuff like (
The repository looks like: