in

Adding End 2 End Tests to WordPress plugins using wp-env and wp-scripts (www.wpgraphql.com)

I recently published a video walking through how End to End tests are set up for WPGraphQL, but I thought it would be good to publish a more direct step-to-step tutorial to help WordPress plugin developers set up End 2 End tests for their own WordPress plugins.

Setting up End to End tests for WordPress plugins can be done in a number of ways (Codeception, Cypress, Ghost Inspector, etc), but lately, the easiest way I’ve found to do this is to use the @wordpress/env and @wordpress/scripts packages, distributed by the team working on the WordPress Block Editor (a.k.a. Gutenberg), along with GitHub Actions.

Leave a Reply

DeoThemes Launches Ona Creative, Another Well-Designed WordPress Block Theme

DeoThemes Launches Ona Creative, Another Well-Designed WordPress Block Theme (wptavern.com)

Block supports, global styles, and work to consolidate style generation in Gutenberg

Block supports, global styles, and work to consolidate style generation in Gutenberg (buildbetterblocks.com)