From 774c7386fb1e713ad331e6728dc8a69f656fbdba Mon Sep 17 00:00:00 2001 From: Viktoria Shirunova Date: Tue, 11 Oct 2022 15:09:28 +0300 Subject: [PATCH] es2panda/js test runner: Make console logs for JS test runner more clear --- test/runner/runner_js.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/runner/runner_js.py b/test/runner/runner_js.py index 02a2b5057..8cefcaef6 100644 --- a/test/runner/runner_js.py +++ b/test/runner/runner_js.py @@ -150,10 +150,18 @@ class RunnerJS(Runner): tests_list.sort(key=lambda t: t.path) print("# " + name) for test in tests_list: - print(test.path) if self.args.error: + print(f"--- {test.test_id} --->: ") print("steps:", test.reproduce) - print(test.report.error if test.report is not None else "") + if test.report: + print("expected output:", test.expected) + print("actual output:", test.report.output) + print("actual error:", test.report.error) + print("actual return code:", test.report.return_code) + else: + print("no information about test running neither output nor error") + else: + print(test.test_id) print("") def summarize_test_statistics(self): -- Gitee