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

---

Sök tillägg

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

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

# wp-unit

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

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

 * [Detaljer](https://sv.wordpress.org/plugins/wp-unit/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/wp-unit/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/wp-unit/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/wp-unit/#developers)

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

## Beskrivning

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’.

## Vanliga frågor

None yet.

## Recensioner

Detta tillägg har inga recensioner.

## Bidragsgivare och utvecklare

”wp-unit” är programvara med öppen källkod. Följande personer har bidragit till 
detta tillägg.

Bidragande personer

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

[Översätt ”wp-unit” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/wp-unit)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/wp-unit/), kika på
[SVN-filförvaret](https://plugins.svn.wordpress.org/wp-unit/) eller prenumerera 
på [utvecklarloggen](https://plugins.trac.wordpress.org/log/wp-unit/) via [RSS](https://plugins.trac.wordpress.org/log/wp-unit/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

2.0 Bundle phpunit.

1.1 Initial version

## Meta

 *  Version **1.0**
 *  Senast uppdaterat **15 år sedan**
 *  Aktiva installationer **10+**
 *  WordPress-version ** 3.0 eller senare **
 *  Testat upp till **3.0.5**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/wp-unit/)
 * Etiketter
 * [phpunit](https://sv.wordpress.org/plugins/tags/phpunit/)[unit testing](https://sv.wordpress.org/plugins/tags/unit-testing/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/wp-unit/advanced/)

## Betyg

Än så länge har inga recensioner skickats in.

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

[Se alla recensioner](https://wordpress.org/support/plugin/wp-unit/reviews/)

## Bidragande personer

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

## Support

Har du något att säga? Behöver du hjälp?

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

## Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

 [ Donera till det här tillägget ](http://www.widgilabs.com)