Answer: To run unit tests, use `npm run test`; to run integration tests, use `npm run test:e2e`. Status: Confirmed Entry: tool/gemini-cli/troubleshooting/run-tests Revision: 1 Digest: sha256:6053dbb1aa75c40e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:18:10Z Last changed: 2026-11-13T03:18:10Z Last verified: 2026-11-20T12:52:17Z Next check: 2026-11-21T12:52:17Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of unit test command | npm run test | [1] | 2026-11-20 integration test command | npm run test:e2e | [1] | 2026-11-20 comprehensive check command | npm run preflight | [1] | 2026-11-20 Sources: [1] Google. "How to contribute". https://geminicli.com/docs/contributing.md Role: primary. Accessed: 2026-11-20T12:52:17Z Quote: "To execute the unit test suite for the project: ```bash npm run test" (Supports: unit test command) Quote: "To run the integration tests, use the following command: ```bash npm run test:e2e" (Supports: integration test command) Quote: "it is recommended to run `npm run preflight`." (Supports: comprehensive check command) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 6d9bc6fd35815e3c9a15d0c342c60483ae66da10a70b4a36a2be2d2a2233b60b (captured 2026-11-13T03:18:09Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:18:10Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:52:17Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:52:17Z Last attempt: 2026-11-20T12:52:17Z Notes and limitations: Extracted automatically from a single official source (section "Running tests"). Related: https://latestn.com/tool/gemini-cli/troubleshooting/terminal-support Which terminals support Gemini CLI system notifications? https://latestn.com/tool/gemini-cli/troubleshooting/verify-local-routing How can I verify that Gemini CLI's local model routing is working? https://latestn.com/tool/gemini-cli/troubleshooting/verify-mcp-connection How do I verify that Gemini CLI is connected to an MCP server? https://latestn.com/tool/gemini-cli/troubleshooting/regenerate-model-responses How do I regenerate model responses for Gemini CLI integration tests? https://latestn.com/tool/gemini-cli/troubleshooting/run-integration-tests How do I run Gemini CLI integration tests? https://latestn.com/tool/gemini-cli/troubleshooting/run-single-integration-test How do I run a single Gemini CLI integration test by name? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:18:10Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/troubleshooting/run-tests/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/troubleshooting/run-tests POST: https://latestn.com/dispute/tool/gemini-cli/troubleshooting/run-tests with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/troubleshooting/run-tests?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I run tests for Gemini CLI? Revision 1, last verified 2026-11-20T12:52:17Z. https://latestn.com/tool/gemini-cli/troubleshooting/run-tests (accessed 2026-11-21T09:54:25Z). @misc{LatestN_tool_gemini_cli_troubleshooting_run_tests_r1, title = {How do I run tests for Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/troubleshooting/run-tests}}, note = {Revision 1; digest sha256:6053dbb1aa75c40e; last verified 2026-11-20T12:52:17Z; accessed 2026-11-21T09:54:25Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/troubleshooting/run-tests