Repository navigation
feat: add EventRelay Gemini test generation command - #2420
Merged
Merged
Conversation
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The prompt incorrectly mandates Vitest despite repository scopes using Jest and Playwright.
1 open finding
What changed in this PR
Adds repository-aware /generate-tests tooling for issue #2419.
Changes:
- Adds a bounded, hermetic test-generation prompt.
- Documents usage and bumps extension version.
- Adds focused command-contract tests.
| File | Description |
|---|---|
generate-tests.toml |
Defines generation and verification rules. |
README.md |
Documents command usage and safeguards. |
gemini-extension.json |
Bumps version to 0.2.0. |
test_eventrelay_gemini_extension.py |
Tests prompt contracts and documentation. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Canonical issue
Closes #2419
Outcome
Adds
/generate-teststo the repository-owned Gemini CLI extension. The command turns a bounded source, behavior, symbol, or local diff into repository-conforming tests while defaulting to the lowest sufficient test level and preserving EventRelay's evidence and safety boundaries.Scope
/generate-testsTOML prompt; unit-first and hermetic generation rules; nearest configured pytest, unittest, Vitest, Jest, or Playwright selection; test-only edit boundary; explicit confirmation before existing-test/shared-fixture/snapshot changes; measured-result output contract; version 0.2.0; documentation; focused extension contracts.Risk
Verification
Exact head:
d4ae50489f386a1ea08c542e757f8872824d56e8python3 -m unittest -v tests.unit.test_eventrelay_gemini_extensionon Python 3.14 — 15 passed./opt/homebrew/bin/python3.12 tests/unit/test_eventrelay_gemini_extension.py— 15 passed.gemini extensions validate .gemini/extensions/eventrelay-engineering— passed with Gemini CLI 0.46.0.git diff 3f7c8eb11d911b376675a036a77e2a8d705c5339..HEAD --check— passed; GitHub reports four expected files, 261 additions, and 16 deletions.apps/web/src/lib/__tests__/auth-jwt.test.ts; that file is unchanged by this pull request.d4ae50489f386a1ea08c542e757f8872824d56e8; a regression contract covers all five configured runner families, and zero unresolved threads remain.Production evidence
Not applicable. This is repository developer tooling and changes no application or deployment path. No Gemini model call was made, so generated-test quality is not presented as runtime proof; current evidence covers prompt contracts, manifest validity, exact-head isolated installation, and repository checks. No user-global installation is claimed.
Agent handoff