Skip to content

EasyConceptTooling, testing and production

How do you write a unit test in Rust?

What a good answer covers

Add a function annotated with #[test], usually inside a #[cfg(test)] module, and run cargo test.

More on Tooling, testing and production

Flashcards for this topic