Skip to content

Commit ae4e7ae

Browse files
[ggj][infra][5/5]doc: update development.md for running integration test (#398)
* update development.md * clean
1 parent b26117b commit ae4e7ae

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

DEVELOPMENT.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,16 @@ below are temporary and better ones will be coming.
105105
```sh
106106
bazel run //src/test/java/com/google/api/generator/engine:JavaCodeGeneratorTest_update
107107
```
108+
109+
- Run a single integration test for API like `Redis`, it generates Java source code using
110+
the Java microgenerator and compares them with the goldens files in `test/integration/goldens/redis`.
111+
112+
```sh
113+
bazel test //test/integration:redis
114+
```
115+
116+
- Update goldens files based on code generation in integration test, for example `Redis`. It generates Java source code using the Java microgenerator and overwrites the goldens files in `test/integration/goldens/redis` based on code generation.
117+
118+
```sh
119+
bazel run //test/integration:redis_update
120+
```

0 commit comments

Comments
 (0)