rodrisan / acme

WordPress integration testing example plugin

Home Page:http://theaveragedev.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An ongoing playground to showcase examples and "gotchas" of WordPress integration tests.

Installation

Clone the plugin in your local WordPress installation plugins folder:

cd /var/www/wp/wp-content/plugins
git clone https://github.com/lucatume/acme.git

From the plugin root install Composer dependencies:

cd acme
composer install

Configure the tests/integration.suite.yml and tests/muintegration.suite.yml suites updating the two configuration files with your local setup information and finally run the tests:

codecept run integration && codecept run muintegration

See why running single site and multisite tests in the same run is not a good idea here.

Usage

The plugin offers no functions and is meant to be an ongoing list of examples about WordPress integration testing.
While you can activate it on your website it will not do anything.

Reference

I will update this plugin code with more examples as I write more and more about WordPress integration testing in my blog; here are some good starters:

About

WordPress integration testing example plugin

http://theaveragedev.com


Languages

Language:PHP 83.6%Language:Shell 16.4%