summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compat/test_runner
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-04-11 18:27:17 +0200
committerGitHub <noreply@github.com>2022-04-11 18:27:17 +0200
commitc8313a74571bf210665eeb214ab74cdff57f2bac (patch)
treec55c08fe4361f63d7458ea00fe4b0262f8b42f78 /cli/tests/testdata/compat/test_runner
parentc154ac5168dadf48e92508b76b91871ed4630825 (diff)
feat(test): Improve testing report output (#14255)
Following changes were done in this commit: - remove "test" prefix before each test - use gray color for "running N tests from ..." prompt - use relative path or remote URL instead of full URL in "running N tests from ..." prompt - in "failures" section, add file path/remote URL before the test name Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'cli/tests/testdata/compat/test_runner')
-rw-r--r--cli/tests/testdata/compat/test_runner/cjs.out11
-rw-r--r--cli/tests/testdata/compat/test_runner/esm.out11
2 files changed, 12 insertions, 10 deletions
diff --git a/cli/tests/testdata/compat/test_runner/cjs.out b/cli/tests/testdata/compat/test_runner/cjs.out
index 91298e91e..02d86891b 100644
--- a/cli/tests/testdata/compat/test_runner/cjs.out
+++ b/cli/tests/testdata/compat/test_runner/cjs.out
@@ -1,10 +1,10 @@
-running 2 tests from [WILDCARD]
-test Correct assertion ... ok ([WILDCARD])
-test Failed assertion ... FAILED ([WILDCARD])
+running 2 tests from compat/test_runner/cjs.js
+Correct assertion ... ok ([WILDCARD])
+Failed assertion ... FAILED ([WILDCARD])
failures:
-Failed assertion
+compat/test_runner/cjs.js > Failed assertion
AssertionError [ERR_ASSERTION]: Values are not strictly equal:
@@ -18,7 +18,8 @@ AssertionError [ERR_ASSERTION]: Values are not strictly equal:
failures:
-[WILDCARD]Failed assertion
+ compat/test_runner/cjs.js
+ Failed assertion
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
diff --git a/cli/tests/testdata/compat/test_runner/esm.out b/cli/tests/testdata/compat/test_runner/esm.out
index 91298e91e..73cfe7826 100644
--- a/cli/tests/testdata/compat/test_runner/esm.out
+++ b/cli/tests/testdata/compat/test_runner/esm.out
@@ -1,10 +1,10 @@
-running 2 tests from [WILDCARD]
-test Correct assertion ... ok ([WILDCARD])
-test Failed assertion ... FAILED ([WILDCARD])
+running 2 tests from compat/test_runner/esm.mjs
+Correct assertion ... ok ([WILDCARD])
+Failed assertion ... FAILED ([WILDCARD])
failures:
-Failed assertion
+compat/test_runner/esm.mjs > Failed assertion
AssertionError [ERR_ASSERTION]: Values are not strictly equal:
@@ -18,7 +18,8 @@ AssertionError [ERR_ASSERTION]: Values are not strictly equal:
failures:
-[WILDCARD]Failed assertion
+ compat/test_runner/esm.mjs
+ Failed assertion
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])