summaryrefslogtreecommitdiff
path: root/cli/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lib.rs')
-rw-r--r--cli/lib.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/cli/lib.rs b/cli/lib.rs
index 9969adbb5..076d4220f 100644
--- a/cli/lib.rs
+++ b/cli/lib.rs
@@ -445,6 +445,7 @@ async fn test_command(
include: Option<Vec<String>>,
fail_fast: bool,
allow_none: bool,
+ filter: Option<String>,
) -> Result<(), ErrBox> {
let global_state = GlobalState::new(flags.clone())?;
let cwd = std::env::current_dir().expect("No current directory");
@@ -462,7 +463,8 @@ async fn test_command(
let test_file_path = cwd.join(".deno.test.ts");
let test_file_url =
Url::from_file_path(&test_file_path).expect("Should be valid file url");
- let test_file = test_runner::render_test_file(test_modules, fail_fast);
+ let test_file =
+ test_runner::render_test_file(test_modules, fail_fast, filter);
let main_module =
ModuleSpecifier::resolve_url(&test_file_url.to_string()).unwrap();
let mut worker =
@@ -545,7 +547,10 @@ pub fn main() {
fail_fast,
include,
allow_none,
- } => test_command(flags, include, fail_fast, allow_none).boxed_local(),
+ filter,
+ } => {
+ test_command(flags, include, fail_fast, allow_none, filter).boxed_local()
+ }
DenoSubcommand::Completions { buf } => {
if let Err(e) = write_to_stdout_ignore_sigpipe(&buf) {
eprintln!("{}", e);