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
- Import test data into your WordPress install by going to Tools => Import => WordPress
- Select the XML file from your computer
- Click on “Upload file and import”.
- 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.
- Read Becoming a reviewer, and follow the easy steps.
Theme Testing Process
- 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.
- Check template files against Template File Checklist (see above).
- Do a run-through using the Theme Unit Test.
- Validate HTML and CSS. See Validating a Website.
- Test in all your target browsers. For example, IE9, Safari, Chrome, Opera, Firefox and Microsoft Edge.
- Clean up any extraneous comments, debug settings, or TODO items.
- See Theme Review if you are publicly releasing the Theme by submitting it to the Themes Directory.