test(acp): added coverage for extensions ACP commands#22798
test(acp): added coverage for extensions ACP commands#22798samar-703 wants to merge 4 commits intogoogle-gemini:mainfrom
Conversation
Summary of ChangesHello, 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 introduces a new, comprehensive test suite for the ACP extension commands within the CLI. This suite significantly improves code coverage by validating the behavior and error handling of commands such as enabling, disabling, installing, linking, uninstalling, restarting, and updating extensions, ensuring the robustness and reliability of the extension management system. Highlights
Changelog
Activity
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.
Code Review
This pull request adds a comprehensive test suite for the ACP extension commands, significantly improving test coverage. The tests are well-structured and cover many success and failure scenarios. I've identified a couple of areas where error path coverage could be improved, specifically for handling non-existent extensions in the disable and uninstall commands. Adding these tests will make the suite even more robust.
|
Hi there! Thank you for your interest in contributing to Gemini CLI. To ensure we maintain high code quality and focus on our prioritized roadmap, we have updated our contribution policy (see Discussion #17383). We only guarantee review and consideration of pull requests for issues that are explicitly labeled as 'help wanted'. All other community pull requests are subject to closure after 14 days if they do not align with our current focus areas. For this reason, we strongly recommend that contributors only submit pull requests against issues explicitly labeled as 'help-wanted'. This pull request is being closed as it has been open for 14 days without a 'help wanted' designation. We encourage you to find and contribute to existing 'help wanted' issues in our backlog! Thank you for your understanding and for being part of our community! |
Summary
Added a new ACP test suite for
packages/cli/src/acp/commands/extensions.tsto cover command behavior and error paths that previously had no direct tests.Closes #22934
Details
packages/cli/src/acp/commands/extensions.test.tsExtensionsCommanddelegationlist/exploreenable/disable(scope handling,--all, failure cases)install/link(validation + success/error paths)uninstall/restart/updateenablevi.hoisted, module mocks, focused assertions).Related Issues
How to Validate
npm run typecheck --workspace @google/gemini-clinpm run test --workspace @google/gemini-cli -- src/acp/commands/extensions.test.tsnpm run preflightExpected:
25/25)this PR scope (
modelSteering,AppRig,trackerTools).Pre-Merge Checklist