Unit-testing a web service in Rust

Hello folks,

Over the last couple of years, I've been writing a couple of web services in Rust and I'm quite proud of their testing infrastructure because I can run almost all of their tests in milliseconds and without any machine-specific configuration.

I've been briefly mentioned how this works in other articles and wanted to have a canonical place to point to, so I finally spent some time writing how this is all architected:

Have a good weekend!

1 Like