A simple command-line interface that may be used by a TeGere-using project.
Defines validate-args which can convert prescriptively valid command-line
arguments into a :tegere.runner/config
config map.
A simple command-line interface that may be used by a TeGere-using project. Defines validate-args which can convert prescriptively valid command-line arguments into a ``:tegere.runner/config`` config map.
Fiddle file for playing around with grammar.clj.
Fiddle file for playing around with grammar.clj.
Fiddle file for playing around with loader.clj.
Fiddle file for playing around with loader.clj.
No vars found in this namespace.
No vars found in this namespace.
Fiddle file for playing around with runner.clj.
Fiddle file for playing around with runner.clj.
This namespace contains Instaparse CFG (or PEG) grammars (and parsers derived
therefrom) that are used by TeGere. The primary grammar is feature-prsr
,
which describes Gherkin feature files. However, PSGs are also used to parse the
tag expressions that may be passed at the command line, hence:
tag-expression-cli-prsr
and old-style-tag-expr-prsr
.
Note that the outputs of these grammars typically require post-processing in
order to arrive at specification-compliant Clojure data structures. For that
post-processing work, see the tegere.parser
ns.
Final note: the grammars here could all be defined in one go as single def
statements. The present convention of breaking the grammars up into smaller
sub-grammars is in part a vestige of how they were developed, viz., iteratively
and via the REPL.
This namespace contains Instaparse CFG (or PEG) grammars (and parsers derived therefrom) that are used by TeGere. The primary grammar is ``feature-prsr``, which describes Gherkin feature files. However, PSGs are also used to parse the tag expressions that may be passed at the command line, hence: ``tag-expression-cli-prsr`` and ``old-style-tag-expr-prsr``. Note that the outputs of these grammars typically require post-processing in order to arrive at specification-compliant Clojure data structures. For that post-processing work, see the ``tegere.parser`` ns. Final note: the grammars here could all be defined in one go as single ``def`` statements. The present convention of breaking the grammars up into smaller sub-grammars is in part a vestige of how they were developed, viz., iteratively and via the REPL.
Functionality for loading feature files.
Functionality for loading feature files.
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.
Functionality for querying a :tegere.parser/features
collection, including
preparing said collection for querying by 'projecting' tags from features and
example tables to the scenarios that are the ultimate targets of queries.
Functionality for querying a ``:tegere.parser/features`` collection, including preparing said collection for querying by 'projecting' tags from features and example tables to the scenarios that are the ultimate targets of queries.
Defines run, which runs a seq of features that match a supplied tags map, using the step functions defined in a supplied step-registry
Defines run, which runs a seq of features that match a supplied tags map, using the step functions defined in a supplied step-registry
Supplies Given, When and Then functions which register the supplied step text with the supplied perform function
Supplies Given, When and Then functions which register the supplied step text with the supplied perform function
Reusable utilities for TeGere.
Reusable utilities for TeGere.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close