You can download a built package from releases page and install it on your WordPress sites by uploading the zip file.
- Docker
To enter the development workspace, run the following command from the root of the repository:
dev-workspace/run
From inside the dev-workspace you can run the build or any other composer script. Check composer help
for a list of available commands.
composer update
composer build
composer build:js
composer build:lang
dev-workspace/run composer build
- Docker
- PHP
- Composer
Tests will run inside docker containers, but all the commands below should be executed outside the dev-workspace.
Before running any test you need to start the test container:
composer test:up
For stopping, you can use:
composer test:down
Test files will be cached inside the dev-workspace/.cache
directory.
Only Unit and Integration tests are healthy for now. You might find other types of tests but they need refactoring.
composer test:all
composer test Unit
composer test Integration
You also can run specific test file:
composer test tests/Unit/Framework/HooksTest.php
And for running only a specific test:
composer test tests/Unit/Framework/HooksTest.php:testAddAction
You can run any codeception command by executing:
composer codecept <commands>
License: GPLv2 or later