This directory contains tests for the protoc-gen-grpc-swift plugin.
Each test runs protoc with the protoc-gen-grpc-swift plugin with input
.proto files and compares the generated output to "good" output files. Each
test directory must contain the following files/directories:
proto/a directory containing the input.protofilesgolden/a directory containing the good generated codegenerate-and-diff.shfor generating and diffing the generated files against the golden output
The tests also require that the absolute path of the plugin is set in the
PROTOC_GEN_GRPC_SWIFT environment variable.
All Tests can be run by invoking:
./run-tests.shIndividual tests can be run by invoking the generate-and-diff.sh script in
the relevant test directory:
./01-echo/generate-and-diff.sh