All PHP tests are based off of the WordPress "unit" test suite, and therefore need a full WordPress test environment. The install script in '/bin' is pretty standard and should work with VVV or whatever.
We provide a docker-based development environment. It is recommended that you use this environment because the setup is scripted and all of the tests can be run with it.
The local server is http://localhost:8228
- Docker
- Composer
- Yarn
- Installation documentation
- Please use Yarn instead of npm.
- Install local development environment, dependencies and setup test forms
composer dev:install
- May take awhile.
- Go to http://localhost:8228 and make sure you have a WordPress site and can login.
- Username: admin
- password: password
- See Commands
- Install
yarn
- Develop JavaScript that is not blocks or the old stuff in /assets
yarn start
- Develop blocks
yarn start:blocks
- Build all JavaScript and CSS
yarn build