Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hope give more detail info for part: testing-grpc-server in README.md #18

Open
JeffryFeng opened this issue Jun 7, 2021 · 1 comment

Comments

@JeffryFeng
Copy link

can you give more info in README.md about this chapter: https://github.com/pecker-io/karate-grpc#what-to-need-for-testing-grpc-server .

  1. how or where to input gRPC server
  2. how to where to place the protobuf file

thanks

@s3naid
Copy link

s3naid commented Jun 10, 2021

  • def client = Client.create('localhost', 50051)

1.localhost is Your server. So just replace localhost with your server and replace 50051 with your port.
2.By default: <protoSourceRoot>${project.build.directory}/dependency/demo</protoSourceRoot>
You can put your proto files anywhere but make sure You replace this path with new location, I use this:
<protoSourceRoot>${project.basedir}/protos/java</protoSourceRoot>

Protos folder is on the same level as "src" folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants