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/tests/integration/test_tests.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index cbaea36bd..ec334aa6a 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -333,6 +333,24 @@ itest!(steps_ignored_steps { output: "test/steps/ignored_steps.out", }); +itest!(steps_dot_passing_steps { + args: "test --dot test/steps/passing_steps.ts", + exit_code: 0, + output: "test/steps/passing_steps.dot.out", +}); + +itest!(steps_dot_failing_steps { + args: "test --dot test/steps/failing_steps.ts", + exit_code: 1, + output: "test/steps/failing_steps.dot.out", +}); + +itest!(steps_dot_ignored_steps { + args: "test --dot test/steps/ignored_steps.ts", + exit_code: 0, + output: "test/steps/ignored_steps.dot.out", +}); + itest!(steps_invalid_usage { args: "test test/steps/invalid_usage.ts", exit_code: 1, -- cgit v1.2.3