-
Notifications
You must be signed in to change notification settings - Fork 823
Boost: Add Boost to docker phpunit command #44283
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
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
@@ -397,6 +397,16 @@ const buildExecCmd = argv => { | |||
unitTestArgs.plugin = 'jetpack'; | |||
unitTestArgs.envVars = [ 'JETPACK_TEST_WPCOMSH=1' ]; | |||
break; | |||
case 'boost': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anomiex Just a heads up regarding this PR; Boost should now work with jetpack docker phpunit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests need an full WordPress environment up to run? If they can be run on the host (possibly with WorDBless or Brain/Monkey), without going through Docker, that's preferable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to update this documentation string too:
jetpack/tools/cli/commands/docker.js
Line 731 in 82f5ea7
'Which PHPUnit tests to run:\n- jetpack: Jetpack plugin tests\n- jp-multisite: Jetpack plugin multisite tests.\n- jp-wpcomsh: Jetpack plugin tests with wpcomsh installed.\n- crm: Jetpack CRM plugin tests.\n- wpcomsh: Wpcomsh plugin tests.', |
@LiamSarsfield Can you articulate the advantages of this over either |
As I'm AFK next week, and this isn't a priority, I'm going to revert this back to draft so I can have a look at the comments when I get back. |
Proposed changes:
jetpack docker phpunit
command.Other information:
Jetpack product discussion
N/A
Does this pull request change what data or activity we track or use?
N/A
Testing instructions:
projects/jetpack/projects/plugins/boost
) and runningcomposer install
jetpack docker phpunit boost
to verify that the command works as expected, and all tests passjetpack docker phpunit boost --testsuite critical-css --php 8.3
in order to test Critical CSS.jetpack docker phpunit boost
again after, you may receive errors, you may have to runcomposer install
install to install the appropriate vendor files for 8.3 again.