Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

How to test gRPC streams? #5

Open
rsantosr opened this issue May 21, 2020 · 1 comment
Open

How to test gRPC streams? #5

rsantosr opened this issue May 21, 2020 · 1 comment

Comments

@rsantosr
Copy link

Hi @katscott , nice to meet you... The project is very interesting, I have a question... How to test gRPC server streams, client stream, bidirectional? For example: A chat (Server Stream), we need two execution in parallel or Asynchronous with a transmitter and a receiver. How do we do this with cucumber?

Thanks for your attention @katscott

@katscott
Copy link
Contributor

katscott commented Jul 5, 2020

Hi @rsantosr,
Since streams continually use the created call object it would need to be maintained to continue writing/reading within a cucumber scenario. I've not worked with streams much personally, but I've started a basic example in a personal fork that you can peruse for a starting point: https://github.com/katscott/grpc-cucumber-js/tree/streams-test

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

No branches or pull requests

2 participants