Logo: Relish

  1. Sign in

Project: Cukemodeler 1.0.0

Model output

All models can be output in text form. For models that represent parts of the file structure, this text
will be a path and for models that represent parts of a feature file, this text will be Gherkin (see the
model output documentation for specific models for details). As such, output from a model can be used as
input for the same kind of model.

Scenarios
Outputting a model
Given
the models provided by CukeModeler
Then
all of them can be output as text appropriate to the model type
  model = <model_class>.new
  
  model.to_s
And
the output can be used to make an equivalent model
  model = <model_class>.new

  <model_class>.new(model.to_s)

Last published about 5 years ago by Eric Kessler.