# Run phpunit with DevKinsta

**URL:** <https://community.kinsta.com/t/run-phpunit-with-devkinsta/908>\
**Category:** Feature Requests\
**Created:** [August 6, 2021, 11:24am UTC](https://community.kinsta.com/t/run-phpunit-with-devkinsta/908 "2021-08-06T11:24:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joonasnuutinen](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/joonasnuutinen/32/627_2.png) [@joonasnuutinen](https://community.kinsta.com/u/joonasnuutinen)\
**Post date:** [August 6, 2021, 11:24am UTC](https://community.kinsta.com/t/run-phpunit-with-devkinsta/908/1 "2021-08-06T11:24:05Z")

</div>

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?).

---

<div class="post-metadata">

**Author:** ![Andre\_Gagnon](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andre_gagnon/32/56_2.png) [@Andre\_Gagnon](https://community.kinsta.com/u/Andre_Gagnon)\
**Post date:** [August 12, 2021, 6:15pm UTC](https://community.kinsta.com/t/run-phpunit-with-devkinsta/908/2 "2021-08-12T18:15:17Z")

</div>

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

> **[@wordpress/env | Block Editor Handbook | WordPress Developer Resources](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/)**
>
> wp-env lets you easily set up a local WordPress environment for building and testing plugins and themes. It's simple to install and requires…

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

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

```
