From 16d5a9cb24abafaedd699494114042c0e28bdab7 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 10 Mar 2020 14:48:13 -0700 Subject: [PATCH] tests(runner): support DEBUGP for timing out tests (#1324) --- utils/testrunner/Reporter.js | 4 ++++ 1 file changed, 4 insertions(+) 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) {