| Crates.io | include_mdtests |
| lib.rs | include_mdtests |
| version | 0.0.0 |
| created_at | 2025-03-15 01:40:27.644342+00 |
| updated_at | 2025-03-15 01:40:27.644342+00 |
| description | Include markdown for testing, via doctests. |
| homepage | |
| repository | https://github.com/hydro-project/hydro |
| max_upload_size | |
| id | 1592939 |
| size | 6,729 |
include_mdtests::include_mdtests!This macro allows you to include markdown files with Rust code blocks to be run as tests.
The macro takes one argument, a string path or [glob] pattern, relative to the workspace root.
The matched files will be included and converted to doc tests.
include_mdtests::include_mdtests!("my/markdown/test.md")
becomes
#[doc = include_str!("my/markdown/test.md")]
mod my_markdown_test_md {}