mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-04-21 13:37:17 +00: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:
parent
3d106186f4
commit
8d8a2ab64e
2 changed files with 9 additions and 1 deletions
|
|
@ -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"
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
To run the entire suite of integration tests, use the following command:
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ async function main() {
|
|||
})
|
||||
.option('runs', {
|
||||
type: 'number',
|
||||
default: 50,
|
||||
default: 5,
|
||||
description: 'The number of runs to perform',
|
||||
}).argv;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue