summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs
index ad1e15643..9749496c6 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -1002,6 +1002,7 @@ async fn coverage_command(
async fn test_command(
flags: Flags,
include: Option<Vec<String>>,
+ ignore: Vec<PathBuf>,
no_run: bool,
doc: bool,
fail_fast: Option<NonZeroUsize>,
@@ -1045,11 +1046,13 @@ async fn test_command(
let test_modules_result = if doc {
fs_util::collect_specifiers(
include.clone(),
+ &ignore,
fs_util::is_supported_test_ext,
)
} else {
fs_util::collect_specifiers(
include.clone(),
+ &ignore,
fs_util::is_supported_test_path,
)
};
@@ -1176,6 +1179,7 @@ async fn test_command(
let operation = |modules_to_reload: Vec<ModuleSpecifier>| {
let filter = filter.clone();
let include = include.clone();
+ let ignore = ignore.clone();
let lib = lib.clone();
let permissions = permissions.clone();
let program_state = program_state.clone();
@@ -1184,6 +1188,7 @@ async fn test_command(
let doc_modules = if doc {
fs_util::collect_specifiers(
include.clone(),
+ &ignore,
fs_util::is_supported_test_ext,
)?
} else {
@@ -1198,6 +1203,7 @@ async fn test_command(
let test_modules = fs_util::collect_specifiers(
include.clone(),
+ &ignore,
fs_util::is_supported_test_path,
)?;
@@ -1231,6 +1237,7 @@ async fn test_command(
let doc_modules = if doc {
fs_util::collect_specifiers(
include.clone(),
+ &ignore,
fs_util::is_supported_test_ext,
)?
} else {
@@ -1239,6 +1246,7 @@ async fn test_command(
let test_modules = fs_util::collect_specifiers(
include.clone(),
+ &ignore,
fs_util::is_supported_test_path,
)?;
@@ -1352,6 +1360,7 @@ fn get_subcommand(
no_run,
doc,
fail_fast,
+ ignore,
include,
allow_none,
filter,
@@ -1360,6 +1369,7 @@ fn get_subcommand(
} => test_command(
flags,
include,
+ ignore,
no_run,
doc,
fail_fast,