Skip to content

Commit

Permalink
tests(runner): support DEBUGP for timing out tests (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Mar 10, 2020
1 parent 0d2ae91 commit 16d5a9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/testrunner/Reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 16d5a9c

Please sign in to comment.