doc-comment
doc-comment copied to clipboard
Include multiple files from a directory
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?
That could be a nice addition indeed.