Title: wp-unit
Author: Ana Aires
Published: <strong>2011 年 1 月 12 日</strong>
Last modified: 2011 年 1 月 26 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-unit.svg)

# wp-unit

 作者：[Ana Aires](https://profiles.wordpress.org/aaires/)

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

 * [详情](https://cn.wordpress.org/plugins/wp-unit/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-unit/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-unit/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-unit/#developers)

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

## 描述

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.

## 安装

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

## 常见问题

None yet.

## 评价

此插件暂无评价。

## 贡献者及开发者

「wp-unit」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「wp-unit」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-unit)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-unit/)，查看[SVN仓库](https://plugins.svn.wordpress.org/wp-unit/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/wp-unit/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-unit/)。

## 更新日志

2.0 Bundle phpunit.

1.1 Initial version

## 额外信息

 *  版本 **1.0**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-unit/)
 * 标签
 * [phpunit](https://cn.wordpress.org/plugins/tags/phpunit/)[unit testing](https://cn.wordpress.org/plugins/tags/unit-testing/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-unit/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/wp-unit/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-unit/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.widgilabs.com)