Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce87e0f

Browse files
authored
[ggj][bazel] feat: add java_gapic_test Bazel rule (#322)
* feat: add protobuf comment parser util * fix: add basic proto build rules * feat: add header comments to ServiceClient * fix: build protoc at test time * fix!: wrap protobuf location and process comments * feat: add comment parsing to methods and fields * fix: test * feat: add protobuf comments to ServiceClient * fix: solidify codegen method order with TypeNode/MethodArg and Comparable * fix: clean up tests * fix: ServiceClient member variables and method calls * fix: ServiceStubSettings builder type * fix: ServiceSettings Builder construction * fix: ServiceStub callable types * feat: java_gapic_library rule impl * fix: remove debugging comments * feat: add gradle assembly Bazel rules * feat: add java_gapic_test Bazel rule
1 parent ff858f8 commit ce87e0f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

rules_java_gapic/java_gapic.bzl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,17 @@ def java_gapic_library(
156156
deps = [":%s" % name] + actual_test_deps,
157157
**kwargs
158158
)
159+
160+
def java_gapic_test(name, runtime_deps, test_classes, **kwargs):
161+
for test_class in test_classes:
162+
native.java_test(
163+
name = test_class,
164+
test_class = test_class,
165+
runtime_deps = runtime_deps,
166+
**kwargs
167+
)
168+
native.test_suite(
169+
name = name,
170+
tests = test_classes,
171+
**kwargs
172+
)

0 commit comments

Comments
 (0)