-
Notifications
You must be signed in to change notification settings - Fork 29
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
Ease testing with ATAT #75
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently it is very hard to do unit tests that involve ATAT, due to the
fn send<A: AtatCmd>(&mut self, cmd: &A) -> nb::Result<A::Response, Error>;
signature.It would be nice to create and document some method of making it easy to do unittest involving sending multiple different commands after eachother, and asserting on the response.
Main problem is that even if instantiating a
MockAtClient
of some kind, that implementsAtClient
, it is very hard to construct aA::Response
in a way fit for testing multiple send/receive cycles.NOTE: This problem is not an actual problem for ATAT, but rather for the users of ATAT. Yet i think the solution should ideally come within ATAT
The text was updated successfully, but these errors were encountered: