-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow specifying what tests to run with zks (#2841)
`zks t i` now accepts a `-t` flag that can can be used to specify a pattern. Only matching tests are run.
- Loading branch information
Showing
3 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
zk_toolbox/crates/zk_supervisor/src/commands/test/args/integration.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
use clap::Parser; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::messages::{MSG_NO_DEPS_HELP, MSG_TESTS_EXTERNAL_NODE_HELP}; | ||
use crate::messages::{MSG_NO_DEPS_HELP, MSG_TESTS_EXTERNAL_NODE_HELP, MSG_TEST_PATTERN_HELP}; | ||
|
||
#[derive(Debug, Serialize, Deserialize, Parser)] | ||
pub struct IntegrationArgs { | ||
#[clap(short, long, help = MSG_TESTS_EXTERNAL_NODE_HELP)] | ||
pub external_node: bool, | ||
#[clap(short, long, help = MSG_NO_DEPS_HELP)] | ||
pub no_deps: bool, | ||
#[clap(short, long, help = MSG_TEST_PATTERN_HELP)] | ||
pub test_pattern: Option<String>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters