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

Is it possible to mock WS response? #17

Open
captain-yossarian opened this issue Mar 31, 2021 · 15 comments
Open

Is it possible to mock WS response? #17

captain-yossarian opened this issue Mar 31, 2021 · 15 comments

Comments

@captain-yossarian
Copy link

I have found your package very useful!
However, I don’t know/understand if I can mock WS response?
Can I ask you to provide some super small example?

Some times WS are very slow, and my tests are failing. That's why I want mock them.

Thanks

@dsebastian
Copy link
Contributor

Hi @captain-yossarian . Currently the lib is built for testing existing WebSocket connections.
We have an internal tool that we use to mock our Web Sockets and are looking into open sourcing it. Will let you know once we have some updates on that.
Thanks

@captain-yossarian
Copy link
Author

@dsebastian Thanks for such fast response. I'm just curious, how you mock WS response? From the bird eye view

@dsebastian
Copy link
Contributor

@captain-yossarian We use a custom built server to serve mock payloads. Similar to how Wiremock does it, but with streaming data.

@mrpicklez70
Copy link

Hi there, I've also been looking for a library/solution to mock WS responses from my tests. It would be super useful to have access to your internal tool @dsebastian. Thanks in advance!

@dsebastian
Copy link
Contributor

Hi @mrpicklez70 , we were quite busy with the latest release, which just went out. The task is on the list and will be picked up shortly hopefully if there are people interested in this functionality.

@Belzee10
Copy link

I would be useful to have this, I have also been looking for a solution of how to mock WS responses, without success so far :(

@hejtful
Copy link

hejtful commented May 4, 2021

It would be amazing if you open sourced the tool for mocking WS responses 😄 Looking forward to trying it out as soon as it's published!

@hriverahdez
Copy link

This is exactly what we're missing out in our team to improve testing. Would definitely be very helpful if you make it happen.

@jpresagios
Copy link

jpresagios commented May 4, 2021

It would be great to add the ability to mocking WS responses to allow testing on some slow WS connections.

@dsebastian
Copy link
Contributor

Thanks to everyone for pushing this request forward. We have decided to include it in the upcoming sprint. There's a few features we are trying to iron out first, but will try to get something out and add features as they are needed. Still, if you have any feature requests/case scenarios that we can analyse and see if there are any quick wins to include them in v1, post them here.

@mrpicklez70
Copy link

mrpicklez70 commented Jun 14, 2021

Thanks to everyone for pushing this request forward. We have decided to include it in the upcoming sprint. There's a few features we are trying to iron out first, but will try to get something out and add features as they are needed. Still, if you have any feature requests/case scenarios that we can analyse and see if there are any quick wins to include them in v1, post them here.

hi @dsebastian , any updates on this one?

@dsebastian
Copy link
Contributor

Hi @mrpicklez70 , yes, we are working on it. We had to decouple a lot of our code from it. We have only a couple of items still in progress then we should go to testing. Unfortunately I can't give you an ETA yet. Thanks.

@Cubo25
Copy link

Cubo25 commented Oct 12, 2021

Hello ! what's the status of this ? :) I would love to have this feature. Thanks

@dsebastian
Copy link
Contributor

Hi @Cubo25 . Dev work is done for this, unfortunately there's some issues a bit outside of our control that need sorting before we get this in the public domain. Will let everyone know once that happens.

@konstantinschuette
Copy link

Hi @Cubo25 . Dev work is done for this, unfortunately there's some issues a bit outside of our control that need sorting before we get this in the public domain. Will let everyone know once that happens.

Is there any ETA on when this plugin/feature will be added?

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

9 participants