PHPackages                             assertwell/wp-core-test-framework - 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. assertwell/wp-core-test-framework

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

assertwell/wp-core-test-framework
=================================

Streamline testing WordPress plugins and themes using the WordPress core test framework

v0.3.0(3y ago)969.4k1[1 issues](https://github.com/assertwell/wp-core-test-framework/issues)2MITShell

Since Feb 26Pushed 3y ago2 watchersCompare

[ Source](https://github.com/assertwell/wp-core-test-framework)[ Packagist](https://packagist.org/packages/assertwell/wp-core-test-framework)[ RSS](/packages/assertwell-wp-core-test-framework/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (4)DependenciesVersions (6)Used By (2)

WP Core Test Framework
======================

[](#wp-core-test-framework)

[![License: MIT](https://camo.githubusercontent.com/6e492e6ae7fdf5c71431a40f80511bf961f0cf5932e0f94e032d011890d074c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61737365727477656c6c2f77702d636f72652d746573742d6672616d65776f726b)](LICENSE.md)[![Contributor Covenant](https://camo.githubusercontent.com/2757a9db291c5ceda172e31d4fa5f3c4048a6e6257ee0b7113f80de277074b91/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e7472696275746f72253230436f76656e616e742d76322e3025323061646f707465642d6666363962342e737667)](CODE_OF_CONDUCT.md)

This package helps reduce duplication across WordPress plugins and themes by enabling common test scaffolding to be provided [via Composer](https://getcomposer.org/).

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

[](#installation)

To install the WordPress core test framework into your plugin or theme, install this package as a Composer dependency:

```
$ composer require --dev assertwell/wp-core-test-framework
```

Usage
-----

[](#usage)

### Replacing the default `bin/install-wp-tests.sh` file

[](#replacing-the-default-bininstall-wp-testssh-file)

When [scaffolding a new WordPress plugin or theme via WP-CLI](https://developer.wordpress.org/cli/commands/scaffold/), the generator will [create a shell script at `bin/install-wp-tests.sh`](https://github.com/wp-cli/scaffold-command/blob/master/templates/install-wp-tests.sh).

This file is meant to [create an instance of the WordPress core development repository](https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/), which includes the WordPress core testing framework.

In many cases, this shell script is never modified, and is often the only file present in the `bin/` directory. Rather than copying and pasting this file across a bunch of repositories, `install-wp-tests.sh` is provided as a vendor binary by this package.

To use it, find anywhere you're currently (or would be) referencing `bin/install-wp-tests.sh` and replace it with `vendor/bin/install-wp-tests.sh`.

```
# .travis.yml

  install:
      - composer install --prefer-dist --no-interaction
-     - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
+     - bash vendor/bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
```

If your project already contains a `bin/install-wp-tests.sh` file, you may delete it from your repository.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~362 days

Total

4

Last Release

1184d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05f4d610f0de13ac1c23825f691fd05f2dd37ae9e8f0483e2dc4f1ca1e2bfb32?d=identicon)[stevegrunwell](/maintainers/stevegrunwell)

---

Top Contributors

[![stevegrunwell](https://avatars.githubusercontent.com/u/233836?v=4)](https://github.com/stevegrunwell "stevegrunwell (17 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (3 commits)")

---

Tags

composer-packagetesting-toolswordpresstestingwordpress

### Embed Badge

![Health badge](/badges/assertwell-wp-core-test-framework/health.svg)

```
[![Health](https://phpackages.com/badges/assertwell-wp-core-test-framework/health.svg)](https://phpackages.com/packages/assertwell-wp-core-test-framework)
```

###  Alternatives

[yoast/wp-test-utils

PHPUnit cross-version compatibility layer for testing plugins and themes build for WordPress

632.3M52](/packages/yoast-wp-test-utils)[fahadyousafmahar/slash-login

Say goodbye to repetitively fill / submit login forms during development of your laravel applications. This package allows you to login as any user with just a "slash login" (/login/user\_id)

101.3k](/packages/fahadyousafmahar-slash-login)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
