How should I test Body Binding in my application? #2528
Unanswered
joaoschoen
asked this question in
Q&A
Replies: 1 comment
-
I do not think there is magic bullet here. Just copy/paste testcase for each handler with invalid body. ala |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing an API using echo and adding tests to it as I go, and I've found a problem that I don't know how to solve
In every single request that requires the binding of a body to a struct I have to add a test case for if the binding fails
Something like this bit of code above, do you guys have any solution for it other then just adding the same test to every single test file?
Beta Was this translation helpful? Give feedback.
All reactions