Aporiae

Regression Testing through Documentation Comments

I learned about another neat feature of Rust today: documentation comments. These generate HTML for the programmers who want to know how to use your crate. Even better, any example code blocks you add will run as tests! Built-in regression testing – that’s pretty cool:

More about Cargo and Crates.io - The Rust Programming Language

#rust #testing