From 0f63c688ad021c24aec26ae3311cb70a6bd2334c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Pobiar=C5=BCyn?= Date: Wed, 26 Jun 2024 10:34:50 +0200 Subject: [PATCH] Refactor cargo_test_odra_vm and cargo_test_backend functions --- src/command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.rs b/src/command.rs index 0e58e01..c4d4efc 100644 --- a/src/command.rs +++ b/src/command.rs @@ -152,7 +152,7 @@ pub fn cargo_generate_schema_files(current_dir: PathBuf, contract_name: &str, mo /// Runs cargo test. pub fn cargo_test_odra_vm(current_dir: PathBuf, mut args: Vec<&str>) { log::info("Running cargo test..."); - let mut tail_args = vec!["--lib"]; + let mut tail_args = vec![]; tail_args.append(&mut args); cargo(current_dir, "test", tail_args); } @@ -161,7 +161,7 @@ pub fn cargo_test_odra_vm(current_dir: PathBuf, mut args: Vec<&str>) { pub fn cargo_test_backend(project_root: PathBuf, backend_name: &str, mut args: Vec<&str>) { env::set_var(ODRA_BACKEND_ENV_KEY, backend_name); log::info("Running cargo test..."); - let mut tail_args = vec!["--lib"]; + let mut tail_args = vec![]; tail_args.append(&mut args); cargo(project_root, "test", tail_args) }