feat: add match-test argument to test cli

This commit is contained in:
adrian
2025-09-10 08:58:33 +02:00
committed by Adrian Benavides
parent 24504d0f94
commit 580a8822a5
4 changed files with 58 additions and 20 deletions

View File

@@ -25,6 +25,10 @@ struct Args {
#[arg(long, required_unless_present = "package", conflicts_with = "package")]
package_path: Option<String>,
/// If provided, only run the tests with a matching name
#[arg(long)]
match_test: Option<String>,
/// Enable tycho logs
#[arg(long, default_value_t = true)]
tycho_logs: bool,
@@ -56,8 +60,13 @@ fn main() -> miette::Result<()> {
let args = Args::parse();
let test_runner =
TestRunner::new(args.package_path()?, args.tycho_logs, args.db_url, args.vm_traces);
let test_runner = TestRunner::new(
args.package_path()?,
args.match_test,
args.tycho_logs,
args.db_url,
args.vm_traces,
);
test_runner.run_tests()
}