# Testing wp

> Testing wp is an open-source agent skill for developer tools. Guides an agent through writing and running PHPUnit, Pest and Playwright tests on Acorn. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/hekivo/kivo-wise/tree/main/plugins/kivo-wise/skills/testing-wp
- **Repository:** https://github.com/hekivo/kivo-wise
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** testing-wp
- **Collection:** https://github.com/hekivo/kivo-wise
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill covers testing a Roots/Acorn WordPress project. It helps the agent pick the cheapest test level that proves a behaviour, from plain unit tests with stubbed WordPress functions to integration tests with WordPress booted and browser tests with Playwright. It asks the agent to follow the project's existing test configuration and naming conventions rather than introducing a second runner.

The workflow has the agent read the project's test config and an existing test first, run the narrowest filter before the full suite, and check that a new test fails when the behaviour is broken on purpose. Before reporting completion it runs the project's formatter, tests, asset build and cache steps where relevant, and it must report only what it actually observed, including any level that could not run.

The skill expects a project with PHPUnit or Pest, and optionally Playwright, plus a runner command for the chosen profile such as Lando or Docker Compose. It includes a table of common failures, such as undefined WordPress functions in unit tests and missing browsers in containers, with fixes for each.

## When your agent uses it

> Use when writing, running or fixing tests on a Roots/Acorn WordPress project - PHPUnit, Pest, tests/bootstrap.php, WordPress function stubs ("Call to undefined function" in a test), Playwright specs, "run the tests", "is it done", and which runner command runs them. For static analysis use wp-phpstan; for a failing page use roots-debugging.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/testing-wp)
- [License: MIT](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/testing-wp)

## Features

- **Test level selection:** Guides choosing between unit, integration, HTTP and browser tests based on what the behaviour depends on.
- **Unit tests without WordPress:** Covers bootstrapping stubs before the autoloader and testing logic without booting WordPress.
- **Pest integration tests:** Describes writing tests that run against a booted WordPress and Acorn with a real database.
- **Playwright browser specs:** Covers base URLs, projects, headed and headless runs, and API request tests.
- **Verification before completion:** Sets the evidence required to claim a change is done, including red-then-green checks.
- **Common failure fixes:** Lists typical test errors such as missing functions, empty containers and browser launch failures, with remedies.

## Good for

- Add PHPUnit tests for a service class in an Acorn theme
- Fix a test failing with an undefined WordPress function
- Write Playwright specs for a page on a local WordPress site
- Check whether a change is done by running the project's full test suite
- Set up Pest integration tests that run against the WordPress database

## Install

### Claude Code

This skill ships in the `kivo-wise` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add hekivo/kivo-wise
/plugin install kivo-wise@kivo-wise
```

Or copy only this skill to `~/.claude/skills/testing-wp`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/testing-wp &&
cp -R "$tmp/plugins/kivo-wise/skills/testing-wp" ~/.claude/skills/testing-wp &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/testing-wp` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/testing-wp` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/testing-wp &&
cp -R "$tmp/plugins/kivo-wise/skills/testing-wp" ~/.agents/skills/testing-wp &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/testing-wp` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/testing-wp` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/testing-wp &&
cp -R "$tmp/plugins/kivo-wise/skills/testing-wp" ~/.cursor/skills/testing-wp &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/testing-wp` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/hekivo/kivo-wise.git --path plugins/kivo-wise/skills/testing-wp
```

Or copy the folder to `~/.gemini/skills/testing-wp` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/testing-wp`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/testing-wp &&
cp -R "$tmp/plugins/kivo-wise/skills/testing-wp" ~/.copilot/skills/testing-wp &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/testing-wp` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/hekivo/kivo-wise.git
```

Then copy `kivo-wise/plugins/kivo-wise/skills/testing-wp` into your agent's skills folder as `testing-wp`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which test runners does Testing wp cover?

It covers PHPUnit, Pest and Playwright, and it asks the agent to follow whichever test configuration the project already has.

### Does Testing wp run tests against live environments?

No. Tests that hit a real environment, create real accounts or send mail run only when the user asks for them.

### What should I use for static analysis instead?

The skill points static analysis and type checks to the separate wp-phpstan skill, and broken pages without tests to roots-debugging.

### How do I install Testing wp in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/testing-wp to use it in all your projects, or to .claude/skills/testing-wp in one project. Or install the kivo-wise plugin, which includes it: /plugin marketplace add hekivo/kivo-wise, then /plugin install kivo-wise@kivo-wise.

### Does Testing wp run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Testing wp?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Testing wp?

The closest alternatives to Testing wp are Acorn stack, Acorn background, Roots debugging, Wp phpstan and Wp hooks lifecycle.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Acorn stack](https://ai-powered.com/skills/acorn-stack): Acorn stack is an open-source agent skill for developer tools.
- [Acorn background](https://ai-powered.com/skills/acorn-background): Acorn background is an open-source agent skill for developer tools.
- [Roots debugging](https://ai-powered.com/skills/roots-debugging): Roots debugging is an open-source agent skill for developer tools.
- [Wp phpstan](https://ai-powered.com/skills/wp-phpstan): Wp phpstan is an open-source agent skill for developer tools.
- [Wp hooks lifecycle](https://ai-powered.com/skills/wp-hooks-lifecycle): Wp hooks lifecycle is an open-source agent skill for developer tools.
- [Acorn scaffolding](https://ai-powered.com/skills/acorn-scaffolding): Acorn scaffolding is an open-source agent skill for developer tools.
- [Integrated test](https://ai-powered.com/skills/integrated-test): Integrated test is an open-source agent skill for developer tools.
- [Craft pest](https://ai-powered.com/skills/craft-pest): Craft pest is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/testing-wp
