Remove debug line for pretty-printing test, and add '--debug' flag to 'check instead.

This commit is contained in:
KtorZ
2022-12-14 22:31:25 +01:00
parent e5972640d2
commit 5024bd884c
5 changed files with 32 additions and 9 deletions

View File

@@ -11,6 +11,10 @@ pub struct Args {
#[clap(short, long)]
skip_tests: bool,
/// When enabled, also pretty-print test UPLC on failure
#[clap(long)]
debug: bool,
/// Only run tests if their path + name match the given string
#[clap(short, long)]
match_tests: Option<String>,
@@ -20,8 +24,11 @@ pub fn exec(
Args {
directory,
skip_tests,
debug,
match_tests,
}: Args,
) -> miette::Result<()> {
crate::with_project(directory, |p| p.check(skip_tests, match_tests.clone()))
crate::with_project(directory, |p| {
p.check(skip_tests, match_tests.clone(), debug)
})
}