mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-27 05:24:34 -07:00
fix(infra) - Unskip read many file test (#12181)
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
This commit is contained in:
@@ -72,6 +72,9 @@ these responses.
|
|||||||
REGENERATE_MODEL_GOLDENS="true" npm run test:e2e
|
REGENERATE_MODEL_GOLDENS="true" npm run test:e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**WARNING**: Make sure you run **await rig.cleanup()** at the end of your test,
|
||||||
|
else the golden files will not be updated.
|
||||||
|
|
||||||
### Deflaking a test
|
### Deflaking a test
|
||||||
|
|
||||||
Before adding a **new** integration test, you should test it at least 5 times
|
Before adding a **new** integration test, you should test it at least 5 times
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { describe, it, expect } from 'vitest';
|
|||||||
import { TestRig, printDebugInfo, validateModelOutput } from './test-helper.js';
|
import { TestRig, printDebugInfo, validateModelOutput } from './test-helper.js';
|
||||||
|
|
||||||
describe('read_many_files', () => {
|
describe('read_many_files', () => {
|
||||||
it.skip('should be able to read multiple files', async () => {
|
it('should be able to read multiple files', async () => {
|
||||||
const rig = new TestRig();
|
const rig = new TestRig();
|
||||||
await rig.setup('should be able to read multiple files');
|
await rig.setup('should be able to read multiple files');
|
||||||
rig.createFile('file1.txt', 'file 1 content');
|
rig.createFile('file1.txt', 'file 1 content');
|
||||||
@@ -43,5 +43,6 @@ describe('read_many_files', () => {
|
|||||||
|
|
||||||
// Validate model output - will throw if no output
|
// Validate model output - will throw if no output
|
||||||
validateModelOutput(result, null, 'Read many files test');
|
validateModelOutput(result, null, 'Read many files test');
|
||||||
|
await rig.cleanup();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user