This repository contains the example code for the blog post Testing in Rust and Axum. It builds on the Dog Tricks API from the previous article.
- Unit tests for the service layer
- Integration tests for HTTP routes
- Exporting the Axum router through lib.rs
- Rust (latest stable recommended)
- Cargo (comes with Rust)
cargo runcargo test