How to test a WordPress plugin through the upgrade automatically feature

Last week I had released a version of a WordPress plugin that works if the user was doing a fresh install, however if they already had the plugin and upgraded it using the WordPress upgrade automatically feature, problems occurred and some of the database elements were erased. So I had to revert back immediately.

I was wondering if there was a way to test the plugin through the upgrade automatically functionality before hand instead of having to release it and hoping you get it right the first time.

Read More

Thanks in advance,

Omar

Related posts

Leave a Reply

2 comments

  1. If I am not mistaken upgrade process is essentially:

    1. Deactivating plugin.
    2. Replacing files with newer version.
    3. Re-activating plugin.

    Had you treid to simply reproduce this sequence manually?

  2. I think the most straight forward route is to have a demo site that you use over to one side (Consider it a QA environment). Just open that site up and trigger the download/update on this site once you commit your changes to SVN.