When unit testing a plugin, does the plugin need to be in the wp-content/plugins directory of the WordPress tests install?
TL;DR It can be anywhere on the filesystem. (But see the update below for a tool that will help you do this even more realistically.) Explanation The plugin can be anywhere on the filesystem, depending on whether your plugin has an install function and how you want to run that. If your plugin creates database … Read more