Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

Unit Testing and WordPress Plugins

jbl.me/wcphilly

What is Unit Testing?

 

Unit testing is the method by which programmers ensure each individual component of our application is functioning correctly and as expected.

 

In other words, make sure your code works

So what's the big deal?


The Unit

A unit is the smallest testable block of code in your program.

Scripted and Automated

Unit tests follow a pre-defined routine and are usually automated.

Benefits of Unit Testing


Most Importantly...

 

Unit testing is a tool, not a solution.

What Should You Unit Test?


What Should You Not Test

 

Unit Testing Workflows


Tools for WordPress Testing


Questions?

John P. Bloch
@johnpbloch
[email protected]
johnpbloch.com