batch_run 1.2.0

Batch runner for arbitrary Rust files within current project
Documentation
use batch_run::Batch;

fn with(f: impl Fn(&Batch)) {
    let batch = Batch::new();
    f(&batch);
    batch.run().unwrap().assert_all_ok();
}

#[test]
fn basic() {
    with(|t| {
        t.compile_fail("test_batches/basic/compile-fail.rs");
        t.run_match("test_batches/basic/run-*.rs");
        t.run_match("test_batches/basic/print-*.rs");
    })
}

#[test]
fn ui() {
    with(|t| {
        t.run_match("test_batches/ui-runner/main.rs");
        t.run_match("test_batches/ui-runner/nocolor.rs");
    })
}

#[test]
fn user_stories() {
    with(|t| {
        t.compile_fail("test_batches/user-stories/*.rs");
    })
}