RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/GEMINI.md/google-gemini/gemini-cli

GEMINI.md

packages/test-utils/GEMINI.md
GEMINI.md

Quality

58/100

Scores the file, not the repository.

Length

212 words

5 headings · 3 code blocks

Repository

106k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
google-gemini/gemini-cli/packages/test-utils/GEMINI.mdRawGitHub
1# Gemini CLI Test Utils (`@google/gemini-cli-test-utils`)
2 
3Shared test utilities used across the monorepo. This is a private package — not
4published to npm.
5 
6## Key Modules
7 
8- `src/test-rig.ts`: The primary test rig for spinning up end-to-end CLI
9 sessions with mock responses.
10- `src/file-system-test-helpers.ts`: Helpers for creating temporary file system
11 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 running
15 isolated MCP processes.
16 
17## Test MCP Servers
18 
19The `TestRig` provides a fully isolated, compliant way to test tool triggers and
20workflows using local test MCP servers. This isolates your tests from live API
21endpoints and rate-limiting.
22 
23### Usage
24 
251. **Programmatic Builder:**
26 
27```typescript
28 import { TestMcpServerBuilder } from '@google/gemini-cli-test-utils';
29 
30 const builder = new TestMcpServerBuilder('weather-server').addTool(
31 'get_weather',
32 'Get weather',
33 'It is rainy',
34 );
35 
36 rig.addTestMcpServer('weather-server', builder.build());
37```
38 
392. **Predefined configurations via JSON:** Place a configuration file in
40 `packages/test-utils/assets/test-servers/google-workspace.json` and load it
41 by title:
42 
43```typescript
44 rig.addTestMcpServer('workspace-server', 'google-workspace');
45```
46 
47 **JSON Format Structure (`TestMcpConfig`):**
48 
49```json
50 {
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```
65 
66## Usage
67 
68Import from `@google/gemini-cli-test-utils` in test files across the monorepo.
69 

Sections

  • Gemini CLI Test Utils (`@google/gemini-cli-test-utils`)
  • Key Modules
  • Test MCP Servers
  • Usage
  • Usage

What it covers

testarchitecturetesting-strategy

Stack — with the evidence

typescript

(1.00)

node

(1.00)

vitest

(1.00)

eslint

(1.00)

react

(0.70)

express

(0.70)

jest

(0.70)

javascript

(0.60)

docker

(0.60)

github-actions

(0.60)

monorepo

(0.50)

Format

GEMINI.md

Gemini CLI's memory file, structurally close to CLAUDE.md — @imports and a user-scope layer — which is why repos that carry both usually carry near-identical text in each.

What the corpus says about it

Repository

Owner
google-gemini
Language
—
License
—
Archived
no

All configs in this repo

Also in google-gemini/gemini-cli

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
google-gemini/gemini-cliGEMINI.md · 106kGEMINI.mdtypescriptnode+9setupbuildtestlint-format+691/1003 days ago
google-gemini/gemini-clipackages/a2a-server/GEMINI.md · 106kGEMINI.mdtypescriptnode+8test37/1003 days ago
google-gemini/gemini-clipackages/cli/GEMINI.md · 106kGEMINI.mdtypescriptnode+8teststyleui47/1003 days ago
google-gemini/gemini-clipackages/core/GEMINI.md · 106kGEMINI.mdtypescriptnode+8teststyle63/1003 days ago
google-gemini/gemini-clipackages/devtools/GEMINI.md · 106kGEMINI.mdtypescriptnode+8setupbuildarchapi+174/1003 days ago
google-gemini/gemini-clipackages/sdk/GEMINI.md · 106kGEMINI.mdtypescriptnode+8teststyle41/1003 days ago
google-gemini/gemini-clipackages/vscode-ide-companion/GEMINI.md · 106kGEMINI.mdtypescriptnode+8buildtest41/1003 days ago
Diff against GEMINI.md Diff against packages/a2a-server/GEMINI.md Diff against packages/cli/GEMINI.md Diff against packages/core/GEMINI.md Diff against packages/devtools/GEMINI.md Diff against packages/sdk/GEMINI.md Diff against packages/vscode-ide-companion/GEMINI.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
google-gemini/gemini-cliGEMINI.md · 106kGEMINI.mdtypescriptnode+9setupbuildtestlint-format+691/1003 days ago
diegosouzapw/OmniRouteGEMINI.md · 38kGEMINI.mdtypescriptnode+14testlint-formatarchsecurity+287/1003 days ago
compozy/gographGEMINI.md · 9GEMINI.mdtypescriptgo+5setuptestlint-formatarch+486/1003 days ago
nordeim/misc1/GEMINI.md · 0GEMINI.mdnodetailwind+7setupbuildtestlint-format+381/1003 days ago
firebase/flutterfireGEMINI.md · 9.2kGEMINI.mddartflutter+3lint-formatstylearchdo-not+180/1003 days ago
nodejs/nodedeps/v8/GEMINI.md · 119kGEMINI.mdtypescriptjavascript+7buildteststylearch+477/1003 days ago
abpframework/abpnpm/ng-packs/packages/schematics/src/commands/ai-config/files/gemini/.gemini/GEMINI.md · 14kGEMINI.mdcsharpangular+6testlint-formatstylearch+876/1002 days ago
zyx77550/spardaGEMINI.md · 4GEMINI.mdjavascriptvitest+9testlint-formatgitapi+275/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack