-
Notifications
You must be signed in to change notification settings - Fork 11
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
Examples should have tests as well #9
Comments
Agreed, will take it up once orion is feature complete! |
I am getting error while trying out the examples. For stringsvc example, in generated file stringproto.proto.orion.pb.go, getting following erro: cannot use &_StringService_serviceDesc (type *"google.golang.org/grpc".ServiceDesc) as type *"github.com/carousell/Orion/vendor/google.golang.org/grpc".ServiceDesc in argument to orionServer.RegisterServicego Please advise, thanks |
Kapeel, this is most likely because of missing vendor package, can you update your vendor and check ? |
@ankurs : pls ignore my earlier comment. I have got the code working on my windows env. I had to run govendor fetch github.com/carousell/Orion/orion Thnaks for your help |
Would like
example/echo/service/service.go
to have sample tests that shows examples on how to test an Orion service, for both gRPC and http requests.The context for this is that I'm attempting to write tests for https://github.com/carousell/SSO and so would like to refer to effective and efficient ways to test the service. For example, how to create a test an Orion service with the database functions mocked.
I tried creating a sample service
but this doesn't allow me to test for the http response codes and headers
The text was updated successfully, but these errors were encountered: