Make Plugin Unit Testing Easier, Quicker
Cristi Burcă, otherwise known as scribu, has shared a fantastic resource for unit testing your plugin with an easy-to-understand system for automating and setting up this “chore” that most plugin developers never really get around to.
With a simple command you can download the configure the WordPress testing library and get your testing done so that you don’t have to deal with as many issues when it gets released publicly, because it’s not nice to get hate mail from angry users about your broken plugin, right?
[code]wp scaffold plugin-tests <your-plugin>[/code]
And I understand it, I really do. I don’t like testing anything just as much as you do, but it helps create better products, happier customers, and more importantly if you run any sort of financial system attached to your product, a better business.
That’s worth the investment of time, don’t you think?
Here’s the sample-plugin repo to see what the generated plugin looks like if you’re curious. Thanks Cristi!