benvolio

Crates.iobenvolio
lib.rsbenvolio
version0.1.0
sourcesrc
created_at2021-02-16 20:57:31.095506
updated_at2021-02-16 20:57:31.095506
descriptionRun doc tests for all files matching a glob patten.
homepagehttps://github.com/lovelace-ed/benvolio
repositoryhttps://github.com/lovelace-ed/benvolio
max_upload_size
id356173
size3,911
Teymour Aldridge (teymour-aldridge)

documentation

https://docs.rs/benvolio

README

Benvolio

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");
}
Commit count: 1

cargo fmt