How to expose running server and additional deps/data (so can be used in tests) #2207
-
Hi, I am following zero2prod (https://www.zero2prod.com/index.html) book and in one of the chapters they introduce The Is something like this possible with axum? (and how?) Taking into account that hyper is about to get rid of Thanks (Disclaimer, I am just starting with rust) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yes. Have a look at https://github.com/tokio-rs/axum/blob/main/examples/testing/src/main.rs |
Beta Was this translation helpful? Give feedback.
-
hi @davidpdrsn
The key is Maybe it is worth to be included in the examples? |
Beta Was this translation helpful? Give feedback.
Sorry. Look at the example tagged with the version you’re using such as https://github.com/tokio-rs/axum/blob/axum-v0.6.20/examples/testing/src/main.rs