Gherkin is working a treat for us on a project at the BBC. Previously
we had produced a lot of UML Sequence Diagrams which whilst they have
their merits have been
overtaken by Gherkin Scenarios which are a lot quicker to write,
refactor and parametrize with example data.
One thing we've lost in moving from the UML Sequence Diagrams to the
Gherkin Scenarios is the visual and spatial qualities of the diagrams.
To regain this I'm looking at how we could generate UML Sequence
Diagrams from our Gherkin Scenarios, the figure below shows the sort
of mapping between the two that I'm thinking of:
http://www.twitpic.com/qshm0
What I'd like to do is translate the Gherkin into UML Graph (http://
www.umlgraph.org/ ) scripts (More specifically Mykhaylo Sorochan's DSL
that sits on top of UML Graph
http://macroexpand.org/doku.php/articles:uml-sequence-diagram-dsl-txl:start
)
Has anyone out there looked at doing anything like this and if so,
what are your thoughts?
I figure the stand along Gherkin parser would be a good place to
start...
Cheers
Chris