Skip to content

Preparing WordPress themes for Gutenberg with the Block Unit Test WordPress Plugin

License

Notifications You must be signed in to change notification settings

Threespot/block-unit-test

 
 

Repository files navigation

Gutenberg Block Unit Test

Testing every core block — and every variation of every block — is no small task. That's why I built the Block Unit Test WordPress plugin. Deploy the Block Unit Test WordPress plugin and review every core Gutenberg block to ensure your theme fully supports Gutenberg. Keep reading...

Installation

  1. Add the plugin respository to the composer.json
"repositories": [
  {
    "type": "package",
    "package": {
      "name": "threespot/block-unit-test",
      "version": "dev-master",
      "type": "wordpress-plugin",
      "dist": {
        "url": "https://github.com/Threespot/block-unit-test/archive/master.zip",
        "type": "zip"
      }
    }
  }
], 
  1. Install the composer dependency
composer require threespot/block-unit-test:dev-master
  1. Activate the plugin via WordPress CLI
 wp plugin activate block-unit-test
  1. You will find a new pages added with their titles prepended with Test - . Each of the core Gutenberg blocks will be added here for you to start testing.

Development

  1. Clone the GitHub repository: https://github.com/that-plugin-company/block-unit-test.git
  2. Browse to the folder in the command line.
  3. Run the npm install command to install the plugin's dependencies within a /node_modules/ folder.
  4. Develop stuff.
  5. Run the build gulp task to process build files and generate a zip.

About

Preparing WordPress themes for Gutenberg with the Block Unit Test WordPress Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 51.2%
  • PHP 46.5%
  • JavaScript 2.3%