wiremocket
'wiremocket' provides mocking so you can perform black-box testing of Rust applications that interact with websocket APIs. It's heavily inspired by wiremock-rs and is an experimentation of how it could look like in a similar API. For a relevant wiremock issue look here.
There's still some work to do, but this is very nearly at an initial version!
How to install
Getting started
Here is an example of a wiremocket mock which makes sure all text messages are valid json:
use json;
use connect_async;
use traced_test;
use Message;
use *;
async
More advanced matching based on the stream of messages and more advanced response stream generation are also possible. Please check the docs for more details!