Crates.io | benvolio |
lib.rs | benvolio |
version | 0.1.0 |
source | src |
created_at | 2021-02-16 20:57:31.095506 |
updated_at | 2021-02-16 20:57:31.095506 |
description | Run doc tests for all files matching a glob patten. |
homepage | https://github.com/lovelace-ed/benvolio |
repository | https://github.com/lovelace-ed/benvolio |
max_upload_size | |
id | 356173 |
size | 3,911 |
Run all the doc tests in files matching a specified glob pattern.
Heavily inspired by doc_comment.
#[macro_use]
extern crate benvolio;
doctest_glob!("doctests/*.md");
If you only want to run these tests when running doctests you should do something like the below.
#[macro_use]
extern crate benvolio;
#[cfg(doctest)]
mod doctests {
doctest_glob!("doctests/*.md");
}