jspellman814 / launchcheck

Local WP environment for testing the WP-CLI launchcheck command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Launchcheck Test Environment

GitHub Workflow Status GitHub

This is a test environment based on Lando for testing the Pantheon launchcheck WP-CLI command that also powers the Pantheon Status checks in the dashboard.

wp_launch_check is installed as a submodule which -- while yucky -- allows development to be done on launchcheck within the environment.

Composer is used to manage plugins and themes within the WordPress environment (although it may be more desirable to test plugin/theme installation using WP-CLI) but not to manage WordPress core itself. Composer scripts for running wp_launch_check are included in the composer.json file.

Installation

Before you are able to run launchcheck you will need to setup your environment. This includes running a composer install inside the wp_launch_check directory. You can run the composer launchcheck:init script to take care of this for you.

launchcheck:init also checks for the existence of jq on your system. Using jq is optional, but it can be helpful to more easily parse JSON output when using the --format=json flag in launchcheck commands, e.g. lando wp launchcheck config --format=json | jq.

You can omit the jq check and just run the install by using composer launchcheck:install instead.

Running launchcheck

Once the Composer dependencies of wp_launch_check are installed (see the installation steps above), you can run the launchcheck command in this environment normally using lando wp launchcheck. (This is because the wp_launch_check/vendor/autoload.php file is included in the wp-config.php file.) To see a full list of commands, run lando wp help launchcheck.

Some launchcheck commands can output their data in JSON syntax using the --format=json flag. If you have jq installed, you can pipe the output to jq to have the JSON pretty-printed, e.g. lando wp launchcheck config --format=json | jq.

About

Local WP environment for testing the WP-CLI launchcheck command

License:MIT License


Languages

Language:PHP 69.2%Language:JavaScript 21.6%Language:CSS 9.0%Language:SCSS 0.1%Language:Shell 0.0%