ddev / ddev-drupal-contrib

DDEV integration for developing Drupal contrib projects
Apache License 2.0
62 stars 11 forks source link

allow local phpunit config #30

Closed tyler36 closed 3 months ago

tyler36 commented 3 months ago

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.

tyler36 commented 3 months ago

Failing because of "bad" tests. Check after #33 is merged.