From c8313a74571bf210665eeb214ab74cdff57f2bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 11 Apr 2022 18:27:17 +0200 Subject: 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 --- cli/tests/testdata/compat/test_runner/cjs.out | 11 ++++++----- cli/tests/testdata/compat/test_runner/esm.out | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'cli/tests/testdata/compat/test_runner') 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]) -- cgit v1.2.3