mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 14:10:37 -07:00
Fix(doc) - Add section in docs for deflaking (#10750)
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
This commit is contained in:
@@ -34,6 +34,14 @@ To run a single test by its name, use the `--test-name-pattern` flag:
|
|||||||
npm run test:e2e -- --test-name-pattern "reads a file"
|
npm run test:e2e -- --test-name-pattern "reads a file"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Deflaking a test
|
||||||
|
|
||||||
|
Before adding a **new** integration test, you should test it at least 5 times with the deflake script to make sure that it is not flaky.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run deflake -- --runs=5 --command="npm run test:e2e -- --test-name-pattern '<your-new-test-name>'"
|
||||||
|
```
|
||||||
|
|
||||||
### Running all tests
|
### Running all tests
|
||||||
|
|
||||||
To run the entire suite of integration tests, use the following command:
|
To run the entire suite of integration tests, use the following command:
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ async function main() {
|
|||||||
})
|
})
|
||||||
.option('runs', {
|
.option('runs', {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
default: 50,
|
default: 5,
|
||||||
description: 'The number of runs to perform',
|
description: 'The number of runs to perform',
|
||||||
}).argv;
|
}).argv;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user