Skip to content

Commit c16e0c6

Browse files
xiaozhenliu-gg5miraleung
authored andcommitted
[ggj][infra][5/5]doc: update development.md for running integration test (#398)
* update development.md * clean
1 parent 14d4960 commit c16e0c6

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy