-
Notifications
You must be signed in to change notification settings - Fork 19
Add is-installed subcommand
#214
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
Add is-installed subcommand
#214
Conversation
|
Hello! 👋 Thanks for opening this pull request! Please check out our contributing guidelines. We appreciate you taking the initiative to contribute to this project. Contributing isn't limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation. Here are some useful Composer commands to get you started:
To run a single Behat test, you can use the following command: # Run all tests in a single file
composer behat features/some-feature.feature
# Run only a specific scenario (where 123 is the line number of the "Scenario:" title)
composer behat features/some-feature.feature:123You can find a list of all available Behat steps in our handbook. |
Summary of ChangesHello @baizmandesign, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request introduces a new wp package is-installed subcommand, which is a useful addition for scripting and checking the state of packages. The implementation is straightforward and includes comprehensive documentation and test coverage. My review includes a couple of suggestions to improve code conciseness and test maintainability.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
@swissspidy Please see the comment attached to the pull request. |
features/package-install.feature
Outdated
| fzaninotto | ||
| """ | ||
|
|
||
| When I run `wp package is-installed yoast/wp-cli-faker` |
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.
When you expect return code 1, you need to use "try" instead of "run"
When a test fails it will print the working directory like so: That's where you find all the files created during the test (such as Happy to elaborate on Slack if needed. |
|
Thanks for all of your help @swissspidy! I really appreciate it. :-) |
This pull request is in connection with #210.
When I ran the Behat tests for
features/package-install.featurelocally, a number of them failed. I'm not sure if that was just my computer's fault. If not, we may need to tweak some of the tests. (I wasn't able to troubleshoot why the tests failed locally. I know the tests are run in a temporary directory deep in/var/folders, but I wasn't sure how to runwp packagecommands that used an alternativecomposer.json, or where that alternative composer.json might live.)