|
|
2 yıl önce | |
|---|---|---|
| .. | ||
| 01-echo | 2 yıl önce | |
| 02-multifile | 2 yıl önce | |
| 03-multifile-with-module-map | 2 yıl önce | |
| 04-service-with-message-import | 2 yıl önce | |
| 05-service-only | 2 yıl önce | |
| 06-test-client-only | 2 yıl önce | |
| README.md | 5 yıl önce | |
| run-tests.sh | 5 yıl önce | |
| test-boilerplate.sh | 5 yıl önce | |
protoc-gen-grpc-swift TestsThis 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 .proto filesgolden/ a directory containing the good generated codegenerate-and-diff.sh for generating and diffing the generated files against
the golden outputThe 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.sh
Individual tests can be run by invoking the generate-and-diff.sh script in
the relevant test directory:
./01-echo/generate-and-diff.sh