aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core
diff options
context:
space:
mode:
authorFrancois Regis Menguy <francoisregis.menguy@orange.com>2021-04-26 15:09:11 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2021-08-19 14:46:30 +0200
commit0327d9a2d8cab091f31b9c8435ef3b9e56df8e06 (patch)
treee533263a4cd62f0a385763bb8597447ddaeb4112 /xtesting/core
parent3c87ac7fce318fc97503f72409eaa26d474783d9 (diff)
Add console parameter to behaveframework
Change-Id: I289de43bdea8c52181ec0622c83c5c56dd6890e3 Signed-off-by: Francois Regis Menguy <francoisregis.menguy@orange.com> (cherry picked from commit 05013a4caa67062ddae4b570f67b77365a96e326)
Diffstat (limited to 'xtesting/core')
-rw-r--r--xtesting/core/behaveframework.py2
1 files changed, 2 insertions, 0 deletions
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()