Skip to content

Commit

Permalink
Add matias-zk-toolbox-l1-contracts-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matias-gonz committed Aug 12, 2024
1 parent 66eb735 commit a986d81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
use common::{cmd::Cmd, logger, spinner::Spinner};
use common::{cmd::Cmd, logger};
use config::EcosystemConfig;
use xshell::{cmd, Shell};

use crate::messages::{MSG_L1_CONTRACTS_TEST_SPINNER, MSG_L1_CONTRACTS_TEST_SUCCESS};
use crate::messages::MSG_L1_CONTRACTS_TEST_SUCCESS;

pub fn run(shell: &Shell) -> anyhow::Result<()> {
let ecosystem = EcosystemConfig::from_file(shell)?;
let _dir_guard = shell.push_dir(&ecosystem.link_to_code);

let spinner = Spinner::new(MSG_L1_CONTRACTS_TEST_SPINNER);
Cmd::new(cmd!(shell, "yarn l1-contracts test")).run()?;
spinner.finish();
Cmd::new(cmd!(shell, "yarn l1-contracts test"))
.with_force_run()
.run()?;

logger::outro(MSG_L1_CONTRACTS_TEST_SUCCESS);

Expand Down
1 change: 0 additions & 1 deletion zk_toolbox/crates/zk_supervisor/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ pub(super) const MSG_TESTS_EXTERNAL_NODE_HELP: &str = "Run tests for external no
pub(super) const MSG_TESTS_RECOVERY_SNAPSHOT_HELP: &str =
"Run recovery from a snapshot instead of genesis";
pub(super) const MSG_L1_CONTRACTS_ABOUT: &str = "Run L1 contracts tests";
pub(super) const MSG_L1_CONTRACTS_TEST_SPINNER: &str = "Running L1 contracts tests...";
pub(super) const MSG_L1_CONTRACTS_TEST_SUCCESS: &str = "L1 contracts tests ran successfully";

// Integration tests related messages
Expand Down

0 comments on commit a986d81

Please sign in to comment.