The words of Gherkin, and what each becomes in Clornichon.
.feature file, one behaviour of the system described in Gherkin. Declared in Clojure with deffeature, which turns it into a deftest.Feature: line -- typically the As a / I want / So that narrative. Kept as :description.testing context in clojure.test, a node in the Kaocha tree.Examples tables. <placeholders> in its steps are replaced by the row's values.Given, When, Then, And or But.defgiven, defwhen or defthen. Resolved once, when the feature is declared."I add {int} items") or a regex (#"^I add (\d+) items$"). See Step expressions.{int} {float} {word} {string} {number}, which captures part of the sentence and converts it.{} or :default-scenario-state. See State and hooks.:pre-run, :post-run) or each of its scenarios (:pre-scenario-run, :post-scenario-run). Declared with one argument, it receives the name and tags of what it wraps, and a scenario's :status after it; :scenari/tags on its var restricts it to the matching scenarios. See State and hooks.@annotation on a feature, rule, scenario or examples table. Scenarios inherit the tags above them; --tags filters on them.| table | under a step, passed to its glue as a vector of maps, one per row.""" or ``` block under a step, passed to its glue as a string.--dry-run, which checks that every step resolves a glue without running anything.Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |