Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

tests(runner): support DEBUGP for timing out tests (#1324)

Yury Semikhatsky16d5a9cb24ab
diff --git a/utils/testrunner/Reporter.js b/utils/testrunner/Reporter.js
index 2be1036d98..8ee3060e6f 100644
--- a/utils/testrunner/Reporter.js
+++ b/utils/testrunner/Reporter.js
@@ -201,6 +201,10 @@ class Reporter {
console.log(`${prefix} ${colors.yellow('[MARKED AS FAILING]')} ${test.fullName} (${formatLocation(test.location)})`);
} else if (test.result === 'timedout') {
console.log(`${prefix} ${colors.red(`[TIMEOUT ${test.timeout}ms]`)} ${test.fullName} (${formatLocation(test.location)})`);
+ if (test.output) {
+ console.log(' Output:');
+ console.log(padLines(test.output, 4));
+ }
} else if (test.result === 'failed') {
console.log(`${prefix} ${colors.red('[FAIL]')} ${test.fullName} (${formatLocation(test.location)})`);
if (test.error instanceof MatchError) {