pub fn generate_doc_tests<T: Clone>(docs: &[T]) where
    T: AsRef<Path>, 
Expand description

Generates tests for specified markdown files.

Usage

Generates doc tests for the specified files.

extern crate skeptic;

use skeptic::generate_doc_tests;

fn main() {
    generate_doc_tests(&["README.md"]);
}

Or in case you want to add mdbook files:

extern crate skeptic;

use skeptic::*;

fn main() {
    let mut mdbook_files = markdown_files_of_directory("book/");
    mdbook_files.push("README.md".into());
    generate_doc_tests(&mdbook_files);
}