Title: wp-unit
Author: Ana Aires
Published: <strong>12 Sginer 2011</strong>
Last modified: 26 Sginer 2011

---

Search plugins

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://s.w.org/plugins/geopattern-icon/wp-unit.svg)

# wp-unit

 By [Ana Aires](https://profiles.wordpress.org/aaires/)

[Download](https://downloads.wordpress.org/plugin/wp-unit.2.0.zip)

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

 [Support](https://wordpress.org/support/plugin/wp-unit/)

## Description

Enables you to create unit tests for your plugins, run and check the results in 
a centralized way.
 Since version 2.0 it has phpunit bundled in so all you need 
to get started with unit testing is to install this plugin.

Its based on the WordPress automated system but distributed as a plugin. Also it
does not require a new database and a new configuration file so when you create 
your unit tests pay special attention to your database access so you keep a consistent
database.

Every unit test must extend PHPUnit_Framework_TestCase and be included in the testcase
directory you will find under the wp-unit plugin directory.

To run the tests go to the Unit Testing menu in the admin panel and press the Run
buttom. The results will be displayed on the same page.

Feel free to give us some feedback.

## Installation

 1. Inside the WordPress admin, go to Plugins > Add New and search for ‘wp-unit’.
 2. Click ‘Install’.

## FAQ

None yet.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“wp-unit” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ Ana Aires ](https://profiles.wordpress.org/aaires/)
 *   [ nunomorgadinho ](https://profiles.wordpress.org/nunomorgadinho/)

[Translate “wp-unit” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-unit)

### Interested in development?

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

## Changelog

2.0 Bundle phpunit.

1.1 Initial version

## Meta

 *  Version **1.0**
 *  Last updated **15 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **3.0.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-unit/)
 * Tags
 * [phpunit](https://lmo.wordpress.org/plugins/tags/phpunit/)[unit testing](https://lmo.wordpress.org/plugins/tags/unit-testing/)
 *  [Advanced View](https://lmo.wordpress.org/plugins/wp-unit/advanced/)

## Ratings

No reviews have been submitted yet.

[Add my review](https://wordpress.org/support/plugin/wp-unit/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-unit/reviews/)

## Contributors

 *   [ Ana Aires ](https://profiles.wordpress.org/aaires/)
 *   [ nunomorgadinho ](https://profiles.wordpress.org/nunomorgadinho/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-unit/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.widgilabs.com)