From c1541e24d82f478d83bb166add79c01044894b88 Mon Sep 17 00:00:00 2001 From: oscar marina Date: Sat, 6 Jan 2024 15:59:05 +0100 Subject: [PATCH 1/2] fix(test-runner): unify visual-written representation of skipped tests --- .../test-runner/src/reporter/summaryReporter.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/test-runner/src/reporter/summaryReporter.ts b/packages/test-runner/src/reporter/summaryReporter.ts index edc010d0b..7be463bfb 100644 --- a/packages/test-runner/src/reporter/summaryReporter.ts +++ b/packages/test-runner/src/reporter/summaryReporter.ts @@ -30,8 +30,15 @@ export function summaryReporter(opts: Options): Reporter { let args: ReporterArgs; let favoriteBrowser: string; - function log(logger: Logger, name: string, passed: boolean, prefix = ' ', postfix = '') { - const sign = passed ? green('✓') : red('𐄂'); + function log( + logger: Logger, + name: string, + passed: boolean, + skipped: boolean, + prefix = ' ', + postfix = '', + ) { + const sign = skipped ? dim('-') : passed ? green('✓') : red('𐄂'); if (flatten) logger.log(`${sign} ${name}${postfix}`); else logger.log(`${prefix} ${sign} ${name}`); } @@ -44,7 +51,7 @@ export function summaryReporter(opts: Options): Reporter { ) { const browserName = browser?.name ? ` ${dim(`[${browser.name}]`)}` : ''; for (const result of results?.tests ?? []) { - log(logger, result.name, result.passed, prefix, browserName); + log(logger, result.name, result.passed, result.skipped, prefix, browserName); } for (const suite of results?.suites ?? []) { From 0613039fe993fcfd42cf2e5510d1594bd07af669 Mon Sep 17 00:00:00 2001 From: Westbrook Johnson Date: Fri, 10 May 2024 12:51:46 -0400 Subject: [PATCH 2/2] Create modern-planes-yawn.md --- .changeset/modern-planes-yawn.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/modern-planes-yawn.md diff --git a/.changeset/modern-planes-yawn.md b/.changeset/modern-planes-yawn.md new file mode 100644 index 000000000..ee69953ec --- /dev/null +++ b/.changeset/modern-planes-yawn.md @@ -0,0 +1,5 @@ +--- +"@web/test-runner": patch +--- + +Unify visual-written representation of skipped tests.