graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Feature idea: optionally generate proptest/quickcheck generators for the responses

Open tomhoule opened this issue 7 years ago • 1 comments

I haven't worked with property-based testing in Rust yet, so I don't know how feasible that would be.

The use-case would be testing your code against any data that the server may return by generating random responses that match the expected type. That can be used to check for panics for example.

tomhoule avatar Sep 23 '18 05:09 tomhoule

Or maybe it works with a derive? We have to check out the libraries.

tomhoule avatar Oct 01 '18 18:10 tomhoule