November 19, 2014 — Trust me, maintaining software is sooo much easier when you have unit tests to let you know when changes meet their goals or introduce new bugs. PHPUnit is the standard suite for testing and analyzing PHP code. But getting PHPUnit working with a WordPress plugin is challenging. This presentation explains the unit tests created for the Login Security Solution plugin. How to mediate the conflict between WordPress’ heavy reliance on globally scoped variables (groan) and PHPUnit’s squashing of global variables
How to test calls to wp_mail(), wp_logout(), wp_redirect()
How to continue execution after PHP produces expected errors
Verifying database inserts that have auto-increment ID’s
September 8, 2014 — We all know that we should probably be testing our code but how on earth do you start? Well we’re going to talk about WP CLI and Vagrant and how that sets up testing for you. We’ll take a look at some test patterns and a Github repo started to hold test patterns for people to refer to.
June 12, 2014 — Unit testing can be scary for anyone who’s not a hard-core dev. But they don’t need to be! I’ll help you get up and running with the WordPress unit test framework so your new patches will never need to sit idle on this report page again! Even if you don’t have a patch to contribute to WordPress, you can still get your name on the contributor list by writing tests for any patches that live on this report, too!
March 29, 2014 — Your plugin is broken; do you know why? This session shows some simple principles to help you integrate unit testing in your plugins that will help you find and eliminate bugs before they happen.
December 11, 2013 — What are unit tests? Why put the effort into writing unit tests? You might say, “Heck, I know my code works because I wrote it, sniff”… Besides, what do sustainable unit tests look like so I don’t have to spend all of my time on them? If this sounds familiar, this talk is for you. You will be introduced to the world of testing, with a focus on testing at the unit level, along with demonstrating practical examples for WordPress plugin development.
November 29, 2013 — WordPress has it’s own testing environment. Integrating PHPUnit with the WordPress testing framework can not only improve your code quality, but also your architecture. This talk walks through the process of integrating these environments into your plugin development for more efficient code and easier feature development.
August 21, 2013 — В докладе «Автоматизация тестирования в WordPress» Геннадий расскажет о модульном и системном тестировании плагинов и тем для WordPress — методы, приемы, стратегии, инструментарий и другое.
August 5, 2013 — Unit testing changed the way I write, architect, and debug code. In this presentation, I’ll tell you why I’ve fallen in love with unit testing, and hopefully inspire you to do the same.
September 9, 2011
August 20, 2011