mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(test): enable dumpio in tests #2610
This patch allows logging the output of the Chromium process to be enabled in tests by passing in the environment variable `DUMPIO=true`. Additionally, the `stderr` of the Chromium process will always be logged in the the "Output" section of failing page tests.
This commit is contained in:
committed by
Andrey Lushnikov
parent
8e12d197a2
commit
1bbd094624
@@ -83,6 +83,10 @@ class Reporter {
|
||||
console.log(stack.join('\n'));
|
||||
}
|
||||
}
|
||||
if (test.output) {
|
||||
console.log(' Output:');
|
||||
console.log(test.output.split('\n').map(line => ' ' + line).join('\n'));
|
||||
}
|
||||
console.log('');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user