include_mdtests 0.0.0

Include markdown for testing, via doctests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# `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.

## Example

```rust,ignore
include_mdtests::include_mdtests!("my/markdown/test.md")
```
becomes
```rust,ignore
#[doc = include_str!("my/markdown/test.md")]
mod my_markdown_test_md {}
```