PHPackages                             alvarodelera/pest-wp-plugin - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. alvarodelera/pest-wp-plugin

ActiveLibrary[Testing &amp; Quality](/categories/testing)

alvarodelera/pest-wp-plugin
===========================

Pest plugin for WordPress testing with SQLite support and zero-config setup

v1.0.3(3mo ago)19MITPHPPHP ^8.3CI passing

Since Dec 6Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/alvarodelera/pest-wp-plugin)[ Packagist](https://packagist.org/packages/alvarodelera/pest-wp-plugin)[ Docs](https://github.com/alvarodelera/pest-wp-plugin)[ RSS](/packages/alvarodelera-pest-wp-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (7)Used By (0)

PestWP - Pest Plugin for WordPress
==================================

[](#pestwp---pest-plugin-for-wordpress)

[![Tests](https://github.com/alvarodelera/pest-wp-plugin/actions/workflows/tests.yml/badge.svg)](https://github.com/alvarodelera/pest-wp-plugin/actions/workflows/tests.yml)[![PHPStan](https://camo.githubusercontent.com/1bc07920f0d36e55c17e1d38b1caa132cc605f51a82b388c962870b9a747b898/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230392d627269676874677265656e2e737667)](phpstan.neon)[![Code Style](https://camo.githubusercontent.com/9a55c17459c810407cac6350c94a2c6f9545d3c249439e19a763f6856392bb39/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d5053522d2d31322d626c75652e737667)](pint.json)

A modern testing plugin for WordPress using Pest PHP with SQLite database support and automatic database isolation.

Features
--------

[](#features)

- 🚀 **Modern Testing**: Built on Pest v4 and PHPUnit 12
- 🗄️ **SQLite Integration**: Automatic SQLite database setup for fast, isolated tests
- 🔄 **Database Isolation**: Automatic database state management between tests using SAVEPOINT/ROLLBACK
- 🏭 **Type-Safe Factories**: Strongly-typed helper functions for creating WordPress objects
- 🔧 **Zero Configuration**: Automatic WordPress installation and setup
- 💡 **IDE Support**: Full autocompletion and type checking with PHPStan level 9

Requirements
------------

[](#requirements)

- PHP 8.3 or higher
- Composer

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

[](#installation)

```
composer require --dev pestwp/pest-wp-plugin
```

Quick Start (&lt; 5 minutes)
----------------------------

[](#quick-start--5-minutes)

Get your first WordPress test running in under 5 minutes:

### 1. Add PestWP to your project

[](#1-add-pestwp-to-your-project)

```
composer require --dev pestwp/pest-wp-plugin
```

### 2. Create your first test

[](#2-create-your-first-test)

```
