Testing
Application testing is another critical task that is used to identify potential defects before releasing to the live environment. Testing is mainly separated into two areas called unit testing and integration testing. Unit testing is used to test each small component independent from others, while integration testing is used to test the application in combination with all the modules.
Compared to other popular frameworks, WordPress code is not the easiest to test. However, we can use PHPUnit for testing themes as well as plugins in WordPress. You can find a guide for working with PHPUnit at http://make.wordpress.org/core/handbook/automated-testing/.
WordPress provides a set of test cases for testing major features. Many developers ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access