Run phpunit with DevKinsta

Hi, thanks for the great product! One thing I would like to do is to run phpunit with DevKinsta. Currently, phpunit is not installed in the Docker environment and there doesn’t seem to be a way to install and run it (or is there?).

If you’re already running docker, I would suggest using @wordpress/env for unit testing.

It will spin up an instance for testing when you run:

wp-env run phpunit 'phpunit -c /var/www/html/wp-content/plugins/your-plugin/phpunit.xml.dist'
1 Like