Skip to content

asd99557/docker-compose-init-phpunit-wordpress-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose init PHPUnit WordPress plugin

This project supplies environment to init WordPress plugin to start TDD.

Plugin Unit Tests – WP-CLI — WordPress.org

You can skip much steps to prepare environment to run WP-CLI. And you will be able to get files for test with few steps.

Requirement

  • Docker
  • Docker Compose

Quickstart

1. Clone or download

2. Put test target plugin directory into "plugins" directory

3. Enter directory and Docker Compose up (detach)

cd docker-compose-init-phpunit-wordpress-plugin
docker-compose up -d

4. Enter into wordpress container

docker exec -it wordpress /bin/bash

5. Init WordPress temporary

wp --allow-root core install --url=localhost --title=temporary --admin_user=admin [email protected]

6. Generate files for test

wp --allow-root scaffold plugin-tests (plugin directory name)

Then, you'll get files for test.

References

About

Docker Compose for init WordPress plugin to start TDD.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%