From ea214b2b0c7aacc76cf8ade0d9efbfb5f45cca68 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 16 May 2019 08:48:08 +0200 Subject: [PATCH] DEV: logs tests exception when running qunit on headless chrome (#7553) --- test/run-qunit.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/run-qunit.js b/test/run-qunit.js index e1588373088..311317a1334 100644 --- a/test/run-qunit.js +++ b/test/run-qunit.js @@ -53,6 +53,10 @@ async function runAllTests() { await Promise.all([Page.enable(), Runtime.enable()]); + Runtime.exceptionThrown(exceptionInfo => { + console.log(exceptionInfo.exceptionDetails.exception.description); + }); + Runtime.consoleAPICalled(response => { const message = response["args"][0].value;