From 029bdf0cd55e96f393614ca566d57e4330ac9135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 2 Aug 2023 18:38:10 +0200 Subject: feat(cli): Add dot test reporter (#19804) This commit adds a "dot" reporter to "deno test" subcommand, that can be activated using "--dot" flag. It provides a concise output using: - "." for passing test - "," for ignored test - "!" for failing test User output is silenced and not printed to the console. In non-TTY environments each result is printed on a separate line. --- cli/lsp/testing/execution.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/lsp') diff --git a/cli/lsp/testing/execution.rs b/cli/lsp/testing/execution.rs index ce8c8b5ac..6a5474ea7 100644 --- a/cli/lsp/testing/execution.rs +++ b/cli/lsp/testing/execution.rs @@ -700,7 +700,7 @@ impl LspTestReporter { let err_string = format!( "Uncaught error from {}: {}\nThis error was not caught from a test and caused the test runner to fail on the referenced module.\nIt most likely originated from a dangling promise, event/timeout handler or top-level code.", origin, - test::format_test_error(js_error) + test::fmt::format_test_error(js_error) ); let messages = as_test_messages(err_string, false); for t in stack.iter().rev() { -- cgit v1.2.3