Skip to content

Commit

Permalink
Generate when generateTestClient is set
Browse files Browse the repository at this point in the history
  • Loading branch information
severnt committed Jan 20, 2024
1 parent 783e469 commit f030f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/protoc-gen-grpc-swift/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func main(args: [String]) throws {
binaryFile.content = serializedFileDescriptorProto
response.file.append(binaryFile)
}
if !fileDescriptor.services.isEmpty && (options.generateClient || options.generateServer) {
if !fileDescriptor.services.isEmpty && (options.generateClient || options.generateServer || options.generateTestClient) {
var grpcFile = Google_Protobuf_Compiler_CodeGeneratorResponse.File()
let grpcFileName = uniqueOutputFileName(
component: "grpc",
Expand Down

0 comments on commit f030f5a

Please sign in to comment.