Be the first to like this
Unit testing is an important part of verifying that code works as expected. However, how many tests do you need to write before you can be confident that you’ve done a good job? Where should you be spending your time writing tests, and how do you know when you’re done?
In this talk, we discuss a systematic approach to unit testing WordPress plugins using phpunit. We show how to set up a simple test suite, to examine the code coverage options, and to identify the most risky areas of our code that are in need of tests.