Is there a way to compile tests from other files (like an mdbook)?


#1

So, I write a book about my library and there is a lot of sample code. The code changes but I may forget to change the code in the book and a lot of others things can happen. Does cargo have a way to specify other files to compile tests from? I write a book with mdbook so it’s format id markdown, the same as in the documentation, so it will not be difficult to do that.


#2

Have a look at https://github.com/brson/rust-skeptic :slight_smile:


#3

Awesome! Lol, it 100% fits me :slight_smile: My question can be read as an advertisement now :slight_smile: