Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include multiple files from a directory #31

Open
raffomania opened this issue Apr 7, 2022 · 1 comment
Open

Include multiple files from a directory #31

raffomania opened this issue Apr 7, 2022 · 1 comment

Comments

@raffomania
Copy link

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?

@GuillaumeGomez
Copy link
Owner

That could be a nice addition indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants