Testing routes #70
Unanswered
anthonyjmartinez
asked this question in
Q&A
Replies: 1 comment
-
You'll need to setup the test infra code to write these tests, like building the request + body and calling the request service. You can see an example of using the This is an alternative to the setup method you see in the |
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
-
Is there a standard way to write unit tests for a specific route? I'm working on a library that includes several handlers, and would like to be able to test that they do what I expect within
mod tests
but I'm a little lost on how I might accomplish that. I see thatrouterify
itself defines asupport
module inside its integration tests - should I try to re-implement that myself in my own project?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions