# Theme Testing

The [Theme Unit Test data](https://github.com/WordPress/theme-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 <a href="https://codex.wordpress.org/WordPress_Deprecated_Functions_Hook" target="_blank" rel="noreferrer noopener">Deprecated Functions Hook</a> for more information.
2.  Check template files against <a href="https://developer.wordpress.org/themes/template-files-section/" target="_blank" rel="noreferrer noopener">Template File Checklist</a> (see above).
3.  Do a run-through using the <a href="https://make.wordpress.org/themes/handbook/review/theme-unit-test/" target="_blank" rel="noreferrer noopener">Theme Unit Test</a>.
4.  Validate HTML and CSS. See <a href="https://developer.wordpress.org/themes/advanced-topics/validating-your-theme/" target="_blank" rel="noreferrer noopener">Validating a Website</a>.
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 <a href="https://make.wordpress.org/themes/handbook/review/" target="_blank" rel="noreferrer noopener">Theme Review</a> if you are publicly releasing the Theme by submitting it to the Themes Directory.