cargo_regression/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 {
  let args = Args::new()
    .debug(true)
    .work_dir("tmp")
    .root_dir("demo")
    .filter(&["demo/test-premit/test2.sh"]);
  test(args).await
}