Automated Testing

This is an overview of running and writing tests for WordPress. Automated testing is running test cases where manual intervention is not required to run each one. This is usually in the form of writing test suites which have multiple test cases and a library and command line tool that runs the test suite or suites.

The test suites WordPress uses are PHPUnit for PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher and QUnit for JavaScriptJavaScript JavaScript or JS is an object-oriented computer programming language commonly used to create interactive effects within web browsers. WordPress makes extensive use of JS for a better user experience. While PHP is executed on the server, JS executes within a user’s browser. https://www.javascript.com/..

Execution is usually manual, from the developer choosing which suites on the command line to run, but this isn’t required. The process could be automated and looked over from time to time to ensure that when the code changed, no problems were introduced.

For more information on getting started installing the test suites and running and writing tests, follow the links below:

Note: If writing a test requiring a YouTube or Vimeo URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org/embed, please use the WP 5.0 release YouTube video and the official Vimeo test video:

Last updated: