doc-comment icon indicating copy to clipboard operation
doc-comment copied to clipboard

Include multiple files from a directory

Open raffomania opened this issue 3 years ago • 1 comments

I have a folder full of documentation I'd like to test using doc_comment. At the moment, I have to include every file explicitly:

doctest!("../docs/README.md");
doctest!("../docs/conventions.md");
doctest!("../docs/database.md");
doctest!("../docs/testing/mocks.md");
// ...

I'd love a way to include all files from a folder, maybe using globs or by specifying file extensions:

doctest_directory!("../docs/**/*.md");

Could you imagine such a feature for doc_comment? Do you know of another way to do this conveniently?

raffomania avatar Apr 07 '22 14:04 raffomania

That could be a nice addition indeed.

GuillaumeGomez avatar Apr 07 '22 14:04 GuillaumeGomez