summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorYasser A.Idrissi <getspookydev@gmail.com>2021-07-12 11:55:42 +0100
committerGitHub <noreply@github.com>2021-07-12 12:55:42 +0200
commit32855f2c853b7f30a92d4cb95549cba8abfd44e5 (patch)
treeec2b9dbcd7f023ee6be6d941599221276d4275e9 /cli/main.rs
parent0bc54a0099c70dc05326a2b4a7aa5b0273b1bf1c (diff)
feat: Add support for "deno test --fail-fast=N" (#11316)
This commit adds support for specifying threshold in the "--fail-fast" flag for "deno test" subcommand. Previously using "--fail-fast" stopped running the test suite after first failure and with this change users may specify number of failed tests that will cause the suite to be interrupted. Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 77f8b34ba..217042237 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -987,7 +987,7 @@ async fn test_command(
include: Option<Vec<String>>,
no_run: bool,
doc: bool,
- fail_fast: bool,
+ fail_fast: Option<usize>,
quiet: bool,
allow_none: bool,
filter: Option<String>,