This PR improves PHPunit configure-ablity.
The idea being, if a repository has phpunit config file present, it will default to using it.
Behavior
When running ddev phpiunit
If a phpunit.xml (PHPunit config file) is present, it used it by default.
If a phpunit.xml is NOT present, it runs the command as currently set.
Reasons
This PR allows developers to add and commit phpunit configuration which then can be used by default. These values could be added via CLI, but this become quite verbose if lots of settings are require (I was working on a module in a Gitpod workspace).
While devlopers can take control of the command and make the required adjust, doing so prevents future updates.
This PR improves PHPunit configure-ablity. The idea being, if a repository has phpunit config file present, it will default to using it.
Behavior
When running
ddev phpiunit
If a
phpunit.xml
(PHPunit config file) is present, it used it by default. If aphpunit.xml
is NOT present, it runs the command as currently set.Reasons
This PR allows developers to add and commit phpunit configuration which then can be used by default. These values could be added via CLI, but this become quite verbose if lots of settings are require (I was working on a module in a Gitpod workspace).
While devlopers can take control of the command and make the required adjust, doing so prevents future updates.