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>
This commit is contained in:
Yasser A.Idrissi 2021-07-12 11:55:42 +01:00 committed by GitHub
parent 0bc54a0099
commit 32855f2c85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 113 additions and 9 deletions

View file

@ -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>,