test(cli): skipped test 'should combine and resolve paths from settings and CLI arguments' passes and should be enabled#20817
Conversation
The test 'should combine and resolve paths from settings and CLI arguments' was marked as it.skip but passes correctly. The path combining logic in loadCliConfig already implements the expected behavior (191/191 tests pass). Enabling this test ensures regressions in include directory path resolution are caught automatically. Fixes google-gemini#20816
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 focuses on enhancing the test coverage for the CLI configuration by enabling a test that was previously skipped. The test, which validates the correct combination and resolution of include directory paths, was found to pass successfully, indicating that the underlying implementation is sound. By activating this test, the project gains improved protection against potential regressions in a critical part of its configuration logic. Highlights
Changelog
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 enables a previously skipped test case for the loadCliConfig function. The change involves removing it.skip and using it to activate a test that verifies the combination and resolution of includeDirectories from both settings and CLI arguments. This improves test coverage for this configuration logic. No issues were found in this change.
|
Hi there! Thank you for your contribution to Gemini CLI. To improve our contribution process and better track changes, we now require all pull requests to be associated with an existing issue, as announced in our recent discussion and as detailed in our CONTRIBUTING.md. This pull request is being closed because it is not currently linked to an issue. Once you have updated the description of this PR to link an issue (e.g., by adding How to link an issue: Thank you for your understanding and for being a part of our community! |
Description
In
packages/cli/src/config/config.test.ts, the test'should combine and resolve paths from settings and CLI arguments'is marked asit.skipbut the underlying implementation is correct and the test passes when enabled.Investigation
When
it.skipis changed toit, the test passes successfully as part of the full suite (191/191 tests pass). The path combining logic inloadCliConfigalready correctly implements the behavior the test is verifying.Impact
Without this test active, regressions in include directory path resolution from settings and CLI arguments would go undetected.
Fix
Changed
it.skiptoiton line 1908 ofpackages/cli/src/config/config.test.ts.Fixes #20816