Gemini test
Generate tests via Gemini CLI based on existing code. Triggers on: "generate tests", "write tests", "create test file", "test this code", "add test coverage"From its SKILL.md
npx -y skills add AndyTargino/gemini-bridge --skill gemini-testAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.4 KB, as published. Nobody here has run it
Gemini Test — Test generation via Gemini CLI
Instructions
Use Gemini to generate comprehensive tests.
How to execute
-
Read the target source file
-
Read existing test files to understand patterns and testing framework
-
Build test generation prompt:
cat > /tmp/gemini_prompt.txt << 'GEMINI_EOF' Generate comprehensive tests for this code. Testing framework: [jest/vitest/pytest/etc] Existing test patterns: [PASTE EXISTING TEST EXAMPLE] Source code to test: [PASTE SOURCE CODE] Include: - Unit tests for each function/method - Edge cases (null, undefined, empty, boundary values) - Error cases (invalid input, network failures) - Happy path tests - Integration tests if applicable Return ONLY the test code. No explanations. Match existing patterns exactly. GEMINI_EOF bash ~/.claude/gemini-bridge.sh --file /tmp/gemini_prompt.txt -
Validate generated tests make sense
-
Write to appropriate test file location
-
Use timeout 600000ms
Rules
- ALWAYS read existing tests first for pattern matching
- Validate output is actual test code before writing
- Fix obvious issues before writing the file