cargo_regression/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod args;
mod assert;
mod config;
mod regression;
use assert::Assert;

pub use args::Args;
pub use regression::{test, TestExitCode};

#[tokio::test]
async fn demo() -> TestExitCode {
  match Args::new(true, false, 1, "tmp", "cases", &["sh"], &[]) {
    Ok(args) => test(args).await,
    Err(e) => e.into(),
  }
}