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


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.


Have a look at :slight_smile:


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