Skip to content

Commit

Permalink
Merge branch 'master' into dev/unused_resnames
Browse files Browse the repository at this point in the history
  • Loading branch information
miraleung authored Aug 6, 2021
2 parents 4179dd7 + 27d05d9 commit 3bfb240
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@
bazel run //src/test/java/com/google/api/generator/engine:JavaCodeGeneratorTest
```
- Update goldens files based on code generation in unit test, for example
`JavaCodeGeneratorTest.java`
```sh
bazel run //src/test/java/com/google/api/generator/engine:JavaCodeGeneratorTest_update
```
- Run a single integration test for API like `Redis`, it generates Java source
code using the Java microgenerator and compares them with the goldens files
in `test/integration/goldens/redis`.
Expand All @@ -112,10 +105,20 @@
bazel test //test/integration:redis
```
- 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.
- Run all unit and integration tests.
```sh
bazel test $(bazel query "src/test/..." | grep "Test$") //test/integration/...
```
- Update unit test golden files, for example `JavaCodeGeneratorTest.java`:
```sh
bazel run //src/test/java/com/google/api/generator/engine:JavaCodeGeneratorTest_update
```
- Update integration test golden files, for example `Redis`. This clobbers all the
files in `test/integration/goldens/redis`.
```sh
bazel run //test/integration:redis_update
Expand Down

0 comments on commit 3bfb240

Please sign in to comment.