Skip to content

hirowatari/Docker-for-Wordpress-Plugin-Testing

Repository files navigation

Docker image for testing WordPress plugins.

A boilerplate for creating a containerized plugin testing environment using Codeception.

Set up

  1. Create your plugin in /data/[your-plugin-name]
  2. Set your PLUGIN_NAME (that matches the plugin name in step 1) in the docker-compose.yml
  3. ./docker-build.sh
  4. docker-compose up
  5. docker-compose run wordpress codecept build

Run tests

  1. docker-compose run wordpress codecept run

Note

WordPress user credentials are

This dump.sql was generated only with the information

wp core install --path=/var/www/html --url=wordpress --title='just a wordpress site' --admin_user=a --admin_password=a --admin_email='[email protected]' --skip-email

To debug with xdebug you will need to put your local ip in and wordpress/.htaccess eg

php_value xdebug.remote_host 192.168.1.100

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published