Note: I really don't like this answer.
Scenario Outlines can be preprocessed using cucumber -f pretty -x -d
, which expands scenario outlines in a dry-run, where the steps are not actually executed. The output can be piped to a file and that file can be chopped up using some script to extract the generated scenarios.
Those scenarios can then be included in the input to the actual cucumber execution, which will execute the Scenario Outlines as if they are normal Scenarios.
This is really kludgy and would require writing a script to chop up the results of the -f pretty -x
output (including removing the auto-comments on each line and the preamble to the actual generated Examples:
for each outline).
Update:
Someone has written a formatter that essentially does this, but they warn that it's a hack: https://gist.github.com/blt04/9866357