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:
Joel Einbinder
2018-05-29 15:45:03 -07:00
committed by Andrey Lushnikov
parent 8e12d197a2
commit 1bbd094624
3 changed files with 18 additions and 2 deletions

View File

@@ -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('');
}
}