Theme Testing

The Theme Unit Test data is a WordPress import file will fill a WordPress site with enough stub data (posts, media, users) to test a theme.

The Theme Unit Tests are manual tests to walk through to test theme functionality and how the theme responds to the edge-cases of content and settings.

Theme Unit Test Overview

  1. Fix PHP and WordPress errors. Add the following debug setting to your wp-config.php file to see deprecated function calls and other WordPress-related errors: 
    define('WP_DEBUG', true);
    See Deprecated Functions Hook for more information.
  2. Check template files against Template File Checklist (see above).
  3. Do a run-through using the Theme Unit Test.
  4. Validate HTML and CSS. See Validating a Website.
  5. Check for JavaScript errors.
  6. Test in all your target browsers. For example Safari, Chrome, Opera, Firefox and Microsoft Edge.
  7. Clean up any extraneous comments, debug settings or TODO items.
  8. See Theme Review if you are publicly releasing the Theme by submitting it to the Themes Directory.