A course to move beyond the built-in Rust testing toolkit.
See the codeNo application is an island: you need to interact with third-party APIs, databases and who knows what else. Testing those interactions is tricky, to say the least! This workshop will focus on expanding your Rust testing toolkit, going beyond the basic techniques you're already familiar with. At the end of this workshop, you'll have a strategy to test most of the scenarios that are relevant for a complex Rust application.
The course assumes you have a good understanding of Rust's basic concepts and want to move beyond the built-in testing toolkit. If you run into any issue with the assumed level of Rust knowledge, please ping us and we'll sort it together!
[!NOTE] This workshop has been written by Mainmatter.
It's one of the trainings in our portfolio of Rust workshops.
Check out our landing page if you're looking for Rust consulting or training!
Open the companion book for this course in your browser. Follow the instructions there to get started.
cargo --version).rustup update (or another appropriate command depending on how you installed Rust on your
system).
You must have rustup installed (check with rustup --version).rust-analyzer extension.You can find the solutions to the exercises in
the solutions branch of this
repository.
Throughout the workshop, the following resources might turn out to be useful:
rustup doc!)googletest documentationinsta documentationtempfile documentationsqlx documentationwiremock documentationsyn documentationquote documentationproc-macro2 documentationlibtest_mimic documentationCopyright © 2023- Mainmatter GmbH (https://mainmatter.com), released under the Creative Commons Attribution-NonCommercial 4.0 International license.
445 followers · starred Mar 2024
654 followers · starred May 2024
434 followers · starred May 2025
196 followers · starred May 2025
A course to move beyond the built-in Rust testing toolkit.
See the codeNo application is an island: you need to interact with third-party APIs, databases and who knows what else. Testing those interactions is tricky, to say the least! This workshop will focus on expanding your Rust testing toolkit, going beyond the basic techniques you're already familiar with. At the end of this workshop, you'll have a strategy to test most of the scenarios that are relevant for a complex Rust application.
The course assumes you have a good understanding of Rust's basic concepts and want to move beyond the built-in testing toolkit. If you run into any issue with the assumed level of Rust knowledge, please ping us and we'll sort it together!
[!NOTE] This workshop has been written by Mainmatter.
It's one of the trainings in our portfolio of Rust workshops.
Check out our landing page if you're looking for Rust consulting or training!
Open the companion book for this course in your browser. Follow the instructions there to get started.
cargo --version).rustup update (or another appropriate command depending on how you installed Rust on your
system).
You must have rustup installed (check with rustup --version).rust-analyzer extension.You can find the solutions to the exercises in
the solutions branch of this
repository.
Throughout the workshop, the following resources might turn out to be useful:
rustup doc!)googletest documentationinsta documentationtempfile documentationsqlx documentationwiremock documentationsyn documentationquote documentationproc-macro2 documentationlibtest_mimic documentationCopyright © 2023- Mainmatter GmbH (https://mainmatter.com), released under the Creative Commons Attribution-NonCommercial 4.0 International license.
445 followers · starred Mar 2024
654 followers · starred May 2024
434 followers · starred May 2025
196 followers · starred May 2025