Defines the function parse
, which takes a Gherkin feature string and returns
a maybe ::feature
map. Note that Gherkin Scenario Outlines
are converted to
seqs of ::scenario
maps; that is, the scenario outlines are expanded using
their examples tables.
Defines the function `parse`, which takes a Gherkin feature string and returns a maybe `::feature` map. Note that Gherkin `Scenario Outlines` are converted to seqs of `::scenario` maps; that is, the scenario outlines are expanded using their examples tables.
(parse feature-string)
Convert a string of Gherkin into a maybe ::feature
map. First parse the
string into an Instaparse tree (a vector), then processes that tree to produce
the ::feature
map. All Scenario Outlines and Scenarios are normalized to
::scenario
maps and placed, in their original order, into the
::scenarios
collection.
Convert a string of Gherkin into a maybe ``::feature`` map. First parse the string into an Instaparse tree (a vector), then processes that tree to produce the ``::feature`` map. All Scenario Outlines and Scenarios are normalized to ``::scenario``maps and placed, in their original order, into the ``::scenarios`` collection.
Given an old-style tag expression like 'cat,~@dog,cow,~bunny', parse it into a
disjunction like (or cat (not dog) cow (not bunny))
.
Given an old-style tag expression like 'cat,~@dog,cow,~bunny', parse it into a disjunction like ``(or cat (not dog) cow (not bunny))``.
Given a tag expression like '@wip and not @slow' parse it into an unambiguous
:tegere.query/query-tree
list like (and wip (not slow))
.
Given a tag expression like '@wip and not @slow' parse it into an unambiguous ``:tegere.query/query-tree`` list like ``(and wip (not slow))``.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close