Wait is over!
Grab the biggest deal of the year

Enjoy Up to
70% Off
Theme Unit Test step by step Details

Theme Unit Test step by step Details

This step in Theme testing correlates to a WordPress export (WXR) file that you can import into a WordPress installation to test your Theme. To be clear, this is only one step in testing your Theme. See Theme testing for a full guide.

Test Environment Setup

Clone the theme test data file themeunittestdata.wordpress.xml from the GitHub repository https://github.com/WPTT/theme-unit-test (last updated 30/January/2020).

Or download a copy from https://raw.githubusercontent.com/WPTT/theme-unit-test/master/themeunittestdata.wordpress.xml

  1. Import test data into your WordPress install by going to Tools => Import => WordPress
  2. Select the XML file from your computer
  3. Click on “Upload file and import”.
  4. Under “Import Attachments,” check the “Download and import file attachments” box and click submit.
    Note: you may have to repeat the Import step until you see “All Done” to obtain the full list of Posts and Media.
  5. Read Becoming a reviewer, and follow the easy steps.

Theme Testing Process

  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, IE9, 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.
Written by

Devid Cols