Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow local phpunit config #30

Merged
merged 2 commits into from
Feb 22, 2024
Merged

Conversation

tyler36
Copy link
Contributor

@tyler36 tyler36 commented Feb 16, 2024

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 tyler36 force-pushed the 20240216_phpunit_config branch from 8b6e2e6 to 4a94641 Compare February 22, 2024 04:13
@tyler36 tyler36 mentioned this pull request Feb 22, 2024
@tyler36
Copy link
Contributor Author

tyler36 commented Feb 22, 2024

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

@weitzman weitzman merged commit a79cd1d into ddev:main Feb 22, 2024
2 checks passed
@tyler36 tyler36 deleted the 20240216_phpunit_config branch February 27, 2024 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants