Building, Testing, and Contributing
Normal test invocation is just
make test. Run a single test with an invocation like
go test -v -run TestDevAddSites ./pkg/...
To see which ddev commands the tests are executing, set the environment variable DRUD_DEBUG=true.
Use GOTEST_SHORT=true to run just one CMS in each test.
Docker container development
The docker containers that ddev uses are included in the containers/ directory:
- containers/ddev-webserver: Provides the web servers (the "web" container).
- containers/ddev-dbserver: Provides the "db" container.
- containers/ddev-bgsync: Fast web directory syncing
- containers/phpmyadmin: Provides the phpmyadmin (dba) container
- containers/ddev-router: The router image