PHPackages                             pixline/wp-cli-theme-test-command - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. pixline/wp-cli-theme-test-command

AbandonedArchivedCommand[CLI &amp; Console](/categories/cli)

pixline/wp-cli-theme-test-command
=================================

Install and configure WordPress theme unit tests

v0.5.0(12y ago)242451[5 issues](https://github.com/pixline/wp-cli-theme-test-command/issues)[1 PRs](https://github.com/pixline/wp-cli-theme-test-command/pulls)MITPHPPHP &gt;=5.3.0

Since Nov 14Pushed 9y ago2 watchersCompare

[ Source](https://github.com/pixline/wp-cli-theme-test-command)[ Packagist](https://packagist.org/packages/pixline/wp-cli-theme-test-command)[ Docs](https://github.com/pixline/wp-cli-theme-test-command)[ RSS](/packages/pixline-wp-cli-theme-test-command/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

wp-cli theme-test command
=========================

[](#wp-cli-theme-test-command)

[![Build Status - master](https://camo.githubusercontent.com/9950d4a3084d8cd2b2e55696ef33a693b92d9efb29d7e6ec88cd01dfb4f59985/68747470733a2f2f7472617669732d63692e6f72672f7069786c696e652f77702d636c692d7468656d652d746573742d636f6d6d616e642e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/pixline/wp-cli-theme-test-command) [![Latest Stable Version](https://camo.githubusercontent.com/40738047b07c360b2a5597d64be47364fd5ff63e834b6c77de8399ada29caec3/68747470733a2f2f706f7365722e707567782e6f72672f7069786c696e652f77702d636c692d7468656d652d746573742d636f6d6d616e642f762f737461626c652e706e67)](https://packagist.org/packages/pixline/wp-cli-theme-test-command)

Install and configure Theme "unit tests" (sample data, required plugins and options) with wp-cli

[http://codex.wordpress.org/Theme\_Unit\_Test](http://codex.wordpress.org/Theme_Unit_Test)

Installation
------------

[](#installation)

### Default install: wp-cli + composer

[](#default-install-wp-cli--composer)

Composer installation as referenced in [wp-cli Community Packages setup](https://github.com/wp-cli/wp-cli/wiki/Community-Packages).

1. Make sure to have [wp-cli](http://wp-cli.org#install) already installed.
2. Go to the directory containing the root `composer.json` file:

```
cd ~/.wp-cli
```

2. Add the WP-CLI Package Index:

```
composer config repositories.wp-cli composer http://wp-cli.org/package-index/
```

3. Install the package:

```
composer require pixline/wp-cli-theme-test-command=dev-master
```

Usage
-----

[](#usage)

NOTE: This command can't deal (yet?) with global flags like `--path`, please run it in the WordPress root folder.

```
wp theme-test install [options]

Angle brackets groups possible values, default is marked with *

[--data=< unit-test* | wpcom-theme | wpcom-demo | wptest | skip >]

	URL/path to custom WXR data file, or built-in:

	'unit-test' = Default Theme Unit Test datafile
	'wpcom-theme' = Alternative wpcom datafile (1)
	'wpcom-demo' = Alternative wpcom datafile (2)
	'wptest' = manovotny/wptest datafile
	'skip' = Do not install new data

[--plugin=< theme* | vip | devel | all | skip >]

	Plugin bundle to install.
	Bundles are as suggested in the 'developer' plugin,
	'debug' bundle is an exclusive feature :-)

	'theme' = Default plugin setup
	'vip' = Default + wpcom VIP plugin setup
	'devel' = Default + plugin developer setup
	'debug' = Default + debugger setup
	'all' = Default + VIP + developer + debugger!
	'skip' = Do not install/activate plugin bundles

[--option=< default* | skip >]

	Updates blog options to the test default values.

	'skip' = Do not update options
	'default' = Updates options to their default test value:

		- blogname                WordPress Theme Unit Test Site
		- posts_per_page          5
		- thread_comments         1
		- thread_comments_depth   3
		- page_comments           1
		- comments_per_page       5
		- medium_max_w            null
		- medium_max_h            null
		- large_max_w             null
		- large_max_h             null
		- permalink_structure     /%year%/%monthnum%/%day%/%postname%/

[--menus]            Add custom nav menus

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4565d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68fb22337b4668964ff8c3f97aa653a3bc97afa763779dbbaa546e4387184a9d?d=identicon)[pixline](/maintainers/pixline)

---

Top Contributors

[![pixline](https://avatars.githubusercontent.com/u/242167?v=4)](https://github.com/pixline "pixline (161 commits)")[![scribu](https://avatars.githubusercontent.com/u/225715?v=4)](https://github.com/scribu "scribu (1 commits)")

---

Tags

wp-clitheme-test

### Embed Badge

![Health badge](/badges/pixline-wp-cli-theme-test-command/health.svg)

```
[![Health](https://phpackages.com/badges/pixline-wp-cli-theme-test-command/health.svg)](https://phpackages.com/packages/pixline-wp-cli-theme-test-command)
```

###  Alternatives

[wp-cli/entity-command

Manage WordPress comments, menus, options, posts, sites, terms, and users.

1048.8M55](/packages/wp-cli-entity-command)[wp-cli/i18n-command

Provides internationalization tools for WordPress projects.

11610.4M52](/packages/wp-cli-i18n-command)[wp-cli/extension-command

Manages plugins and themes, including installs, activations, and updates.

919.0M53](/packages/wp-cli-extension-command)[wp-cli/core-command

Downloads, installs, updates, and manages a WordPress installation.

5110.2M23](/packages/wp-cli-core-command)[wp-cli/config-command

Generates and reads the wp-config.php file.

399.7M12](/packages/wp-cli-config-command)[wp-cli/media-command

Imports files as attachments, regenerates thumbnails, or lists registered image sizes.

447.4M9](/packages/wp-cli-media-command)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
