8
Theme Unit Tests WordPress sample content

WordPress Theme Unit Tests

Embed Size (px)

DESCRIPTION

What theme unit tests are, why you would use them, and some of the different options available.

Citation preview

Page 1: WordPress Theme Unit Tests

Theme Unit TestsWordPress sample content

Page 2: WordPress Theme Unit Tests

What are Theme Unit Tests?

Two forms:

1. XML file (import via Tools > Import > WordPress

2. Plugin

Provide sample content to test theme styles

Page 3: WordPress Theme Unit Tests

Why use them?

Test theme candidates for your site or a project

Save time later by testing styles now

Check your own theme development

Make sure your own themes support all default WordPress content features

Don’t release incomplete themes

Page 4: WordPress Theme Unit Tests

WordPress.orgcodex.wordpress.org/Theme_Unit_Test

wpthemetestdata.wordpress.com/

Images, embeds

Visual Editor styles

Post formats

Categories & tags

Titles, excerpts, more tag, password, pagination etc

Page 5: WordPress Theme Unit Tests

WP Testwptest.io

Based on wp.org's Theme Unit Test

Cool images

Fewer nonsense categories

Straight forward post titles

Page 6: WordPress Theme Unit Tests

Plugin: Demo Data Creatorwordpress.org/plugins/demo-data-creator/

Has options page

Supports:

User creation

BuddyPress

Multisite

Page 7: WordPress Theme Unit Tests

Plugin: WP Lipsum

wordpress.org/plugins/wp-lipsum/

Uses shortcodes or template tag

May be easier to use on development site

Page 8: WordPress Theme Unit Tests

Plugin: WP Example Content

http://wordpress.org/plugins/wp-example-content

Set bundle of 6 posts

Formatting, images, lists, links, blockquotes

One-button sample posts removal