From d945f38225da28fc10e397fc8837a7cc081c13e3 Mon Sep 17 00:00:00 2001 From: matias-gonz Date: Mon, 23 Sep 2024 09:53:59 -0300 Subject: [PATCH 1/2] Add zk toolbox unit tests to zks test --- zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs b/zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs index fdee03fe63ea..f2eb06da7b8b 100644 --- a/zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs +++ b/zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs @@ -75,6 +75,12 @@ pub async fn run(shell: &Shell, args: RustArgs) -> anyhow::Result<()> { .env("TEST_PROVER_DATABASE_URL", test_prover_url); cmd.run()?; + // Run unit tests for zk_toolbox + let _dir_guard = shell.push_dir(&link_to_code.join("zk_toolbox")); + Cmd::new(cmd!(shell, "cargo nextest run --release")) + .with_force_run() + .run()?; + logger::outro(MSG_UNIT_TESTS_RUN_SUCCESS); Ok(()) } From c31b692a9ea6ff3592f563c8f3d5de5cb8d8e58c Mon Sep 17 00:00:00 2001 From: matias-gonz Date: Mon, 23 Sep 2024 10:08:55 -0300 Subject: [PATCH 2/2] Lint --- zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs b/zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs index f2eb06da7b8b..7011e0f0f874 100644 --- a/zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs +++ b/zk_toolbox/crates/zk_supervisor/src/commands/test/rust.rs @@ -76,7 +76,7 @@ pub async fn run(shell: &Shell, args: RustArgs) -> anyhow::Result<()> { cmd.run()?; // Run unit tests for zk_toolbox - let _dir_guard = shell.push_dir(&link_to_code.join("zk_toolbox")); + let _dir_guard = shell.push_dir(link_to_code.join("zk_toolbox")); Cmd::new(cmd!(shell, "cargo nextest run --release")) .with_force_run() .run()?;