Extensive WordPress Plugin Unit Testing
Going way beyond just writing up your own unit tests for your WordPress plugin, this presentation covers ways to run the 1,300+ core tests with your plugin enabled, running your plugin tests on Travis CI (fully automated and covering all version environments), and making use of the WordPress core unit testing framework for your plugin's unit tests (clean and complete WP installation with every test, factories, and fake AJAX requests).
https://speakerdeck.com/u/tierra/p/unit-testing-wordpress-plugins
Written by Bryan Petty
Related protips
2 Responses
HI Bryan
You have a video of yourself delivering this presentation online anywhere?
Neil
There wasn't one when I posted this, but there actually is now:
https://www.youtube.com/watch?v=9qMUc9anJKQ
Have a fresh tip? Share with Coderwall community!
WordPress sites collect scripts from themes, plugins, and tag managers. A compromised plugin update can add a skimmer to every page without a change in your own templates.
Security insights from Cside