summaryrefslogtreecommitdiff
path: root/cli/tests/integration/test_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-08-02 18:38:10 +0200
committerGitHub <noreply@github.com>2023-08-02 18:38:10 +0200
commit029bdf0cd55e96f393614ca566d57e4330ac9135 (patch)
treeccc9f64068c70fcae1fcceba3920b375bcc19ce2 /cli/tests/integration/test_tests.rs
parentd9c85e016f054fd3b6c68a54213e7c0ad8c3a8f4 (diff)
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.
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r--cli/tests/integration/test_tests.rs18
1 files changed, 18 insertions, 0 deletions
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,