From 199edd7df2d85d02606786bbb5f3c85f20918240 Mon Sep 17 00:00:00 2001 From: Xiaozhen Liu Date: Wed, 21 Oct 2020 18:51:40 +0000 Subject: [PATCH 1/2] update development.md --- DEVELOPMENT.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 4320c37a42..c0931cf2cb 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -105,3 +105,16 @@ below are temporary and better ones will be coming. ```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`. + + ```sh + 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 overwrite the goldens files in `test/integration/goldens/redis` based on code generation. + + ```sh + bazel run //test/integration:redis_update + ``` \ No newline at end of file From 93aabe9a4369deff079ca479476e68f9afa1d97d Mon Sep 17 00:00:00 2001 From: Xiaozhen Liu Date: Wed, 21 Oct 2020 19:06:38 +0000 Subject: [PATCH 2/2] clean --- DEVELOPMENT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index c0931cf2cb..b6b5fb825f 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -113,7 +113,7 @@ the Java microgenerator and compares them with the goldens files in `test/integr 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 overwrite the goldens files in `test/integration/goldens/redis` based on code generation. +- 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. ```sh bazel run //test/integration:redis_update