From 05013a4caa67062ddae4b570f67b77365a96e326 Mon Sep 17 00:00:00 2001 From: Francois Regis Menguy Date: Mon, 26 Apr 2021 15:09:11 +0200 Subject: Add console parameter to behaveframework Change-Id: I289de43bdea8c52181ec0622c83c5c56dd6890e3 Signed-off-by: Francois Regis Menguy --- xtesting/core/behaveframework.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xtesting/core') diff --git a/xtesting/core/behaveframework.py b/xtesting/core/behaveframework.py index 2b41614c..dacda27d 100644 --- a/xtesting/core/behaveframework.py +++ b/xtesting/core/behaveframework.py @@ -97,6 +97,8 @@ class BehaveFramework(testcase.TestCase): html_file = os.path.join(self.res_dir, 'output.html') config += ['--format=behave_html_formatter:HTMLFormatter', '--outfile={}'.format(html_file)] + if kwargs.get("console", False): + config += ['--format=pretty', '--outfile=-'] for feature in suites: config.append(feature) self.start_time = time.time() -- cgit 1.2.3-korg