From 996c2eadf1ea617530b10bec6ddc2ae4d842cb0b Mon Sep 17 00:00:00 2001 From: Pierre Paridans Date: Mon, 4 Jan 2021 20:35:56 +0000 Subject: [PATCH] [FIX] web: qunit: always log name of failing qunit-fixture content test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up of odoo/odoo@598d036b59012af0a95894d759fe3b6276fc8ccb closes odoo/odoo#64171 X-original-commit: b4ceaa06b2c3ca4b9a1e95dc815d18867c49fd80 Signed-off-by: Adrien Dieudonné (adr) --- addons/web/static/tests/helpers/qunit_config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/tests/helpers/qunit_config.js b/addons/web/static/tests/helpers/qunit_config.js index 158c67b2891..575c8022d2b 100644 --- a/addons/web/static/tests/helpers/qunit_config.js +++ b/addons/web/static/tests/helpers/qunit_config.js @@ -183,6 +183,7 @@ QUnit.on('OdooAfterTestHook', function (info) { // check for leftovers in #qunit-fixture const qunitFixture = document.getElementById('qunit-fixture'); if (qunitFixture.children.length) { + console.error(`Test ${info.moduleName} > ${info.testName}`); console.error('#qunit-fixture still contains elements:' + '\n#qunit-fixture HTML:\n' + qunitFixture.outerHTML); QUnit.pushFailure(`#qunit-fixture still contains elements`);