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...
- 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"
}
}
}
],
- Install the composer dependency
composer require threespot/block-unit-test:dev-master
- Activate the plugin via WordPress CLI
wp plugin activate block-unit-test
- 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.
- Clone the GitHub repository:
https://github.com/that-plugin-company/block-unit-test.git
- Browse to the folder in the command line.
- Run the
npm install
command to install the plugin's dependencies within a /node_modules/ folder. - Develop stuff.
- Run the
build
gulp task to process build files and generate a zip.