From 55a0f989112a0321d176b77e58279038432df718 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 17 Jul 2017 12:41:22 +0530 Subject: [PATCH] Show assertions result in console (#3701) --- frappe/core/doctype/test_runner/test_runner.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frappe/core/doctype/test_runner/test_runner.js b/frappe/core/doctype/test_runner/test_runner.js index f7d4128c50..243c2804ca 100644 --- a/frappe/core/doctype/test_runner/test_runner.js +++ b/frappe/core/doctype/test_runner/test_runner.js @@ -50,6 +50,11 @@ frappe.ui.form.on('Test Runner', { "Runtime": details.runtime }; + details.assertions.map(a => { + // eslint-disable-next-line + console.log(`${a.result ? '✔' : '✗'} ${a.message}`); + }); + // eslint-disable-next-line console.log(JSON.stringify(result, null, 2)); });