File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def add_options(parser):
32
32
"--cucumberjson-expanded" ,
33
33
"--cucumber-json-expanded" ,
34
34
action = "store_true" ,
35
- dest = "expand " ,
35
+ dest = "cucumber_json_expanded " ,
36
36
default = False ,
37
37
help = "expand scenario outlines into scenarios and fill in the step names" ,
38
38
)
@@ -42,7 +42,7 @@ def configure(config):
42
42
cucumber_json_path = config .option .cucumber_json_path
43
43
# prevent opening json log on slave nodes (xdist)
44
44
if cucumber_json_path and not hasattr (config , "slaveinput" ):
45
- config ._bddcucumberjson = LogBDDCucumberJSON (cucumber_json_path , expand = config .option .expand )
45
+ config ._bddcucumberjson = LogBDDCucumberJSON (cucumber_json_path , expand = config .option .cucumber_json_expanded )
46
46
config .pluginmanager .register (config ._bddcucumberjson )
47
47
48
48
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ def add_options(parser):
21
21
group ._addoption (
22
22
"--gherkin-terminal-reporter-expanded" ,
23
23
action = "store_true" ,
24
- dest = "expand " ,
24
+ dest = "gherkin_expanded " ,
25
25
default = False ,
26
- help = "expand scenario outlines into scenarios and fill in the step names" ,
26
+ help = "enable gherkin output, expand scenario outlines into scenarios and fill in the step names" ,
27
27
)
28
28
29
29
30
30
def configure (config ):
31
- if config .option .gherkin_terminal_reporter :
31
+ if config .option .gherkin_terminal_reporter or config . option . gherkin_expanded :
32
32
# Get the standard terminal reporter plugin and replace it with our
33
33
current_reporter = config .pluginmanager .getplugin ('terminalreporter' )
34
34
if current_reporter .__class__ != TerminalReporter :
@@ -100,7 +100,7 @@ def pytest_runtest_logreport(self, report):
100
100
self ._tw .write (report .scenario ['name' ], ** scenario_markup )
101
101
self ._tw .write ('\n ' )
102
102
for step in report .scenario ['steps' ]:
103
- if self .config .option .expand :
103
+ if self .config .option .gherkin_expanded :
104
104
step_name = self ._format_step_name (step ['name' ], ** report .scenario ['example_kwargs' ])
105
105
else :
106
106
step_name = step ['name' ]
You can’t perform that action at this time.
0 commit comments