Title: Pound :: Easy Unit Testing For WordPress
Author: Lee Blue
Published: <strong>March 14, 2016</strong>
Last modified: September 29, 2017

---

Search plugins

![](https://ps.w.org/pound/assets/banner-772x250.png?rev=1371035)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/pound/assets/icon.svg?rev=1371020)

# Pound :: Easy Unit Testing For WordPress

 By [Lee Blue](https://profiles.wordpress.org/reality66/)

[Download](https://downloads.wordpress.org/plugin/pound.1.0.1.zip)

 * [Details](https://wordpress.org/plugins/pound/#description)
 * [Reviews](https://wordpress.org/plugins/pound/#reviews)
 *  [Installation](https://wordpress.org/plugins/pound/#installation)
 * [Development](https://wordpress.org/plugins/pound/#developers)

 [Support](https://wordpress.org/support/plugin/pound/)

## Description

Pound makes it really easy to write and run unit tests for WordPress plugins.

## Screenshots

 * [[
 * Shortcode to run tests
 * [[
 * Example output with a failing test

## Installation

To Install Pound

 1. Download the pound.zip file
 2. Extract the zip file so that you have a folder called pound
 3. Upload the ‘pound’ folder to the `/wp-content/plugins/` directory
 4. Activate the plugin through the ‘Plugins’ menu in WordPress

To Uninstall Pound

 1. Deactivate the plugin thorugh the ‘Plugins’ menu in WordPress
 2. Click the “delete” link to delete the plugin. This will remove all
     of the files
    installed by the plugin from your plugins directory. It will not delete any pages
    or posts on your WordPress site.

## FAQ

  Installation Instructions

To Install Pound

 1. Download the pound.zip file
 2. Extract the zip file so that you have a folder called pound
 3. Upload the ‘pound’ folder to the `/wp-content/plugins/` directory
 4. Activate the plugin through the ‘Plugins’ menu in WordPress

To Uninstall Pound

 1. Deactivate the plugin thorugh the ‘Plugins’ menu in WordPress
 2. Click the “delete” link to delete the plugin. This will remove all
     of the files
    installed by the plugin from your plugins directory. It will not delete any pages
    or posts on your WordPress site.

  Where can I learn more about how to use Pound to test my plugins?

For more information about how it works, why you may want to use it, and how to 
set up and
 run unit tests for your WordPress plugins, please see this article: 
http://leehblue.com/unit-testing-wordpress-plugins/

  Why not just use PHPUnit?

Pound was created to make it fast and easy to start writing unit tests for your 
WordPress
 plugins. You can run the plugin on the actual site where you are developing
if you don’t have a test site. There is virtually no configuration necessary to 
start writing tests. The overall intention of this plugin is to make unit testing
more accessible to WordPress plugin developers.

PHPUnit is a very powerful tool and is great for testing PHP code including WordPress
plugins.
 In fact, if you get into using WP-CLI you will notice that there is built-
in support for using PHPUnit to test your code. Pound is not intended to replace
the need for PHPUnit. It is intended to provide an easy way to get started with 
unit testing WordPress plugins. It’s a great option for small to medium sized plugins.

  How is Pound different from PHPUnit?

On one hand, Pound and PHPUnit are both tools to help you run automated tests for
your code.
 Pound is built as a WordPress plugin, and therefore really only intended
to be used for WordPress development. PHPUnit can be used to test any codebase. 
The main benefits of Pound over PHPUnit are ease of use. Pound has one boolean check
at the end of each tests. PHPUnit has a very large number of assertions. Pound requires
virtually no configuration to start using. PHPUnit requires XML configuration files
to set up your testing environment. Pound runs right in your web browser with clean,
colorful output. PHPUnit is a command line tool.

## Reviews

![](https://secure.gravatar.com/avatar/96606273e3e3973ee6cfefa8d82505c7604d7fe778719871ed150c8487ac632a?
s=60&d=retro&r=g)

### 󠀁[Awesome start!](https://wordpress.org/support/topic/awesome-start-3/)󠁿

 [johndeebdd](https://profiles.wordpress.org/johndeebdd/) December 26, 2018

We need to start writing testable code in WordPress plugins! There are very few 
academic projects in this area, and Lee Blue has put forward a really cool plugin
here. This plugin takes a unique approach in that it is extremely simple and limited
in what it can do. It’s a great start for programmers looking to get into testing
their plugins.

 [ Read all 0 reviews ](https://wordpress.org/support/plugin/pound/reviews/)

## Contributors & Developers

“Pound :: Easy Unit Testing For WordPress” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Lee Blue ](https://profiles.wordpress.org/reality66/)

[Translate “Pound :: Easy Unit Testing For WordPress” into your language.](https://translate.wordpress.org/projects/wp-plugins/pound)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/pound/), check out 
the [SVN repository](https://plugins.svn.wordpress.org/pound/), or subscribe to 
the [development log](https://plugins.trac.wordpress.org/log/pound/) by [RSS](https://plugins.trac.wordpress.org/log/pound/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Update minimum PHP requirement to PHP 5.4

#### 1.0

 * Initial relase of Pound

## Meta

 *  Version **1.0.1**
 *  Last updated **9 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **4.8.28**
 *  PHP version ** 5.4 or higher **
 * Tags
 * [development](https://wordpress.org/plugins/tags/development/)[plugins](https://wordpress.org/plugins/tags/plugins/)
   [testing](https://wordpress.org/plugins/tags/testing/)[unit testing](https://wordpress.org/plugins/tags/unit-testing/)
 *  [Advanced View](https://wordpress.org/plugins/pound/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/pound/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/pound/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/pound/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/pound/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/pound/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/pound/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/pound/reviews/)

## Contributors

 *   [ Lee Blue ](https://profiles.wordpress.org/reality66/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/pound/)