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):
3232 "--cucumberjson-expanded" ,
3333 "--cucumber-json-expanded" ,
3434 action = "store_true" ,
35- dest = "expand " ,
35+ dest = "cucumber_json_expanded " ,
3636 default = False ,
3737 help = "expand scenario outlines into scenarios and fill in the step names" ,
3838 )
@@ -42,7 +42,7 @@ def configure(config):
4242 cucumber_json_path = config .option .cucumber_json_path
4343 # prevent opening json log on slave nodes (xdist)
4444 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 )
4646 config .pluginmanager .register (config ._bddcucumberjson )
4747
4848
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ def add_options(parser):
2121 group ._addoption (
2222 "--gherkin-terminal-reporter-expanded" ,
2323 action = "store_true" ,
24- dest = "expand " ,
24+ dest = "gherkin_expanded " ,
2525 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" ,
2727 )
2828
2929
3030def configure (config ):
31- if config .option .gherkin_terminal_reporter :
31+ if config .option .gherkin_terminal_reporter or config . option . gherkin_expanded :
3232 # Get the standard terminal reporter plugin and replace it with our
3333 current_reporter = config .pluginmanager .getplugin ('terminalreporter' )
3434 if current_reporter .__class__ != TerminalReporter :
@@ -100,7 +100,7 @@ def pytest_runtest_logreport(self, report):
100100 self ._tw .write (report .scenario ['name' ], ** scenario_markup )
101101 self ._tw .write ('\n ' )
102102 for step in report .scenario ['steps' ]:
103- if self .config .option .expand :
103+ if self .config .option .gherkin_expanded :
104104 step_name = self ._format_step_name (step ['name' ], ** report .scenario ['example_kwargs' ])
105105 else :
106106 step_name = step ['name' ]
You can’t perform that action at this time.
0 commit comments