GEMINI.md
packages/test-utils/GEMINI.mdGEMINI.md
Quality
58/100
Scores the file, not the repository.Length
212 words
5 headings · 3 code blocksRepository
106k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# Gemini CLI Test Utils (`@google/gemini-cli-test-utils`)23Shared test utilities used across the monorepo. This is a private package — not4published to npm.56## Key Modules78- `src/test-rig.ts`: The primary test rig for spinning up end-to-end CLI9 sessions with mock responses.10- `src/file-system-test-helpers.ts`: Helpers for creating temporary file system11 fixtures.12- `src/mock-utils.ts`: Common mock utilities.13- `src/test-mcp-server.ts`: Helper for building test MCP servers for tests.14- `src/test-mcp-server-template.mjs`: Generic template script for running15 isolated MCP processes.1617## Test MCP Servers1819The `TestRig` provides a fully isolated, compliant way to test tool triggers and20workflows using local test MCP servers. This isolates your tests from live API21endpoints and rate-limiting.2223### Usage24251. **Programmatic Builder:**2627```typescript28 import { TestMcpServerBuilder } from '@google/gemini-cli-test-utils';2930 const builder = new TestMcpServerBuilder('weather-server').addTool(31 'get_weather',32 'Get weather',33 'It is rainy',34 );3536 rig.addTestMcpServer('weather-server', builder.build());37```38392. **Predefined configurations via JSON:** Place a configuration file in40 `packages/test-utils/assets/test-servers/google-workspace.json` and load it41 by title:4243```typescript44 rig.addTestMcpServer('workspace-server', 'google-workspace');45```4647 **JSON Format Structure (`TestMcpConfig`):**4849```json50 {51 "name": "string (Fallback server name)",52 "tools": [53 {54 "name": "string (Tool execution name)",55 "description": "string (Helpful summary for router)",56 "inputSchema": {57 "type": "object",58 "properties": { ... }59 },60 "response": "string | object (The forced reply payload)"61 }62 ]63 }64```6566## Usage6768Import from `@google/gemini-cli-test-utils` in test files across the monorepo.69
Also in google-gemini/gemini-cli
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| google-gemini/gemini-cliGEMINI.md · 106k | GEMINI.md | setupbuildtestlint-format+6 | 91/100 | 3 days ago | |
| google-gemini/gemini-clipackages/a2a-server/GEMINI.md · 106k | GEMINI.md | test | 37/100 | 3 days ago | |
| google-gemini/gemini-clipackages/cli/GEMINI.md · 106k | GEMINI.md | teststyleui | 47/100 | 3 days ago | |
| google-gemini/gemini-clipackages/core/GEMINI.md · 106k | GEMINI.md | teststyle | 63/100 | 3 days ago | |
| google-gemini/gemini-clipackages/devtools/GEMINI.md · 106k | GEMINI.md | setupbuildarchapi+1 | 74/100 | 3 days ago | |
| google-gemini/gemini-clipackages/sdk/GEMINI.md · 106k | GEMINI.md | teststyle | 41/100 | 3 days ago | |
| google-gemini/gemini-clipackages/vscode-ide-companion/GEMINI.md · 106k | GEMINI.md | buildtest | 41/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| google-gemini/gemini-cliGEMINI.md · 106k | GEMINI.md | setupbuildtestlint-format+6 | 91/100 | 3 days ago | |
| diegosouzapw/OmniRouteGEMINI.md · 38k | GEMINI.md | testlint-formatarchsecurity+2 | 87/100 | 3 days ago | |
| compozy/gographGEMINI.md · 9 | GEMINI.md | setuptestlint-formatarch+4 | 86/100 | 3 days ago | |
| nordeim/misc1/GEMINI.md · 0 | GEMINI.md | setupbuildtestlint-format+3 | 81/100 | 3 days ago | |
| firebase/flutterfireGEMINI.md · 9.2k | GEMINI.md | lint-formatstylearchdo-not+1 | 80/100 | 3 days ago | |
| nodejs/nodedeps/v8/GEMINI.md · 119k | GEMINI.md | buildteststylearch+4 | 77/100 | 3 days ago | |
| abpframework/abpnpm/ng-packs/packages/schematics/src/commands/ai-config/files/gemini/.gemini/GEMINI.md · 14k | GEMINI.md | testlint-formatstylearch+8 | 76/100 | 2 days ago | |
| zyx77550/spardaGEMINI.md · 4 | GEMINI.md | testlint-formatgitapi+2 | 75/100 | 3 days ago |
