-
Notifications
You must be signed in to change notification settings - Fork 384
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
Update the Engineering Guidelines Documentation #6798
Comments
As part of this issue, I’m working on making sure that the docker-based local environment bundled with the repo works as expected and allows for a really quick set up for new contributors. It is because I realized that that my setup based on Local is pretty custom and not reliable, especially when it comes to PHP unit testing. |
I've faced some issues with having 2 instances of both It's interesting that I've even tried replacing the custom docker-compose setup we have in the plugin with Where issues popped up is phpunit. After adding some tweaks to the wp-env run tests-cli './wp-content/plugins/amp/vendor/bin/phpunit -c wp-content/plugins/amp/phpunit.xml.dist' There are limitations to that since, when used as an npm script, there's no way to pass additional arguments to phpunit from the CLI. The Phpunit, in general, has been a pain for me when using Local, too. It'd be great to find a way to make it easy to run the tests for anyone joining the project (ideally, the tests would work out-of-the-box). |
You can use
Then in console we can use,
Here is my wp-env setup for amp-wp development. |
@ediamin Thanks for the advice and for sharing a link to your setup. I think it'll be very helpful. |
Problem Statement
The current Engineering Guidelines are mostly outdated and need to be updated to ensure users are able to contribute to the plugin easily
To-Do
Along with updating the contents under the existing sections, let's also include a setup guideline for the below development environments
Initial updated draft to be created by @delawski, followed by a review and Valet related updates by @dhaval-parekh
Please feel free to add any new sections to improve the knowledge base further.
The text was updated successfully, but these errors were encountered: