-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ggj][infra][1/5] integration-test: add goldens files for Redis clien…
…t library (#378) * add goldens files for redis client lib * add bazel file * format * add todo comment for Redis client lib goldens * add README to integration test goldens folder * update redis goldens using micro * remove package-info * rename
- Loading branch information
1 parent
aa3c348
commit f0f1dd2
Showing
13 changed files
with
4,425 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Goldens Files For Integration Test | ||
|
||
This folder contains goldens files that are expected to be generated from Java Microgenerator | ||
against differenct APIs. For example `redis` folder has all the Java source files in the generated | ||
Redis client library. They are all actual Java files, but used as goldens. | ||
|
||
## Purpose | ||
|
||
When running integration test for the Java Microgenerator using the below command, | ||
the goldens files in this folder will be used to compare with the actual generated Java source files. | ||
If they are not identical, then the integration test will fail. | ||
|
||
```sh | ||
bazel test //test/integration:redis_java_gapic | ||
``` | ||
|
||
## How To Update Goldens | ||
|
||
If the actual generated Java source files are not identical with the goldens files, and we want to | ||
update the goldens using source files. Run the command below to overwrite the goldens files in `redis` folder. | ||
|
||
```sh | ||
bazel run //test/integration:redis_goldens_update | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
filegroup( | ||
name = "goldens_files", | ||
srcs = glob(["*.java"]), | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.