Best Python code snippet using fMBT_python
BUILD.bazel
Source:BUILD.bazel
1load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")2load("@com_google_api_codegen//rules_gapic:gapic.bzl", "proto_library_with_info")3load(4 "@com_google_api_codegen//rules_gapic/java:java_gapic.bzl",5 "java_gapic_library",6 "java_resource_name_proto_library",7)8load("@com_google_api_codegen//rules_gapic/java:java_gapic_pkg.bzl", "java_gapic_assembly_gradle_pkg")9# This is an API workspace, having public visibility by default makes perfect sense.10package(default_visibility = ["//visibility:public"])11##############################################################################12# Common13##############################################################################14proto_library(15 name = "errorreporting_proto",16 srcs = [17 "common.proto",18 "error_group_service.proto",19 "error_stats_service.proto",20 "report_errors_service.proto",21 ],22 deps = [23 "//google/api:api_proto",24 "@com_google_protobuf//:timestamp_proto",25 "@com_google_protobuf//:duration_proto",26 ],27)28proto_library_with_info(29 name = "errorreporting_proto_with_info",30 deps = [":errorreporting_proto"],31)32##############################################################################33# Java34##############################################################################35_JAVA_GRPC_DEPS = [36 "@com_google_api_grpc_proto_google_common_protos//jar",37]38java_proto_library(39 name = "errorreporting_java_proto",40 deps = [":errorreporting_proto"],41)42java_grpc_library(43 name = "errorreporting_java_grpc",44 srcs = [":errorreporting_proto"],45 deps = [":errorreporting_java_proto"] + _JAVA_GRPC_DEPS,46)47java_resource_name_proto_library(48 name = "errorreporting_resource_name_java_proto",49 gapic_yaml = "errorreporting_gapic.yaml",50 deps = [":errorreporting_proto"],51)52java_gapic_library(53 name = "errorreporting_java_gapic",54 src = ":errorreporting_proto_with_info",55 gapic_yaml = "errorreporting_gapic.yaml",56 service_yaml = "//google/devtools/clouderrorreporting:errorreporting.yaml",57 test_deps = [":errorreporting_java_grpc"],58 deps = [59 ":errorreporting_java_proto",60 ":errorreporting_resource_name_java_proto",61 ] + _JAVA_GRPC_DEPS,62)63[java_test(64 name = test_name,65 test_class = test_name,66 runtime_deps = [67 ":errorreporting_java_gapic_test",68 ],69) for test_name in [70 "com.google.cloud.errorreporting.v1beta1.ErrorGroupServiceClientTest",71 "com.google.cloud.errorreporting.v1beta1.ErrorStatsServiceClientTest",72 "com.google.cloud.errorreporting.v1beta1.ReportErrorsServiceClientTest",73]]74##############################################################################75# Opensource Packages76##############################################################################77java_gapic_assembly_gradle_pkg(78 name = "google-cloud-error-reporting-v1beta1-java",79 client_deps = [":errorreporting_java_gapic"],80 client_group = "com.google.cloud",81 client_test_deps = [":errorreporting_java_gapic_test"],82 grpc_deps = [":errorreporting_java_grpc"],83 grpc_group = "com.google.api.grpc",84 proto_deps = [85 ":errorreporting_java_proto",86 ":errorreporting_proto",87 ":errorreporting_resource_name_java_proto",88 ] + _JAVA_GRPC_DEPS,89 version = "0.0.0-SNAPSHOT",...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!