(And pattern args-vec & fn-body)
Macro version of defstep with reduced syntax for convenience.
Macro version of defstep with reduced syntax for convenience.
(But pattern args-vec & fn-body)
Macro version of defstep with reduced syntax for convenience.
Macro version of defstep with reduced syntax for convenience.
(defstep pattern step-fn)
Add a step definition to the registry
Add a step definition to the registry
(find-step state step)
(Given pattern args-vec & fn-body)
Macro version of defstep with reduced syntax for convenience.
Macro version of defstep with reduced syntax for convenience.
(join-gherkin zipper new-form)
Adds the new form into the zipper at the end and at the appropriate depth
Adds the new form into the zipper at the end and at the appropriate depth
(parse-data-table lines)
Takes a sequence of strings each representing 1 line of a data table. The columns of the table should be surrounded by the pipe character. The first row of the table is the header, and for each of the remaining rows a map will be returned with values matched to the keys in the header
Takes a sequence of strings each representing 1 line of a data table. The columns of the table should be surrounded by the pipe character. The first row of the table is the header, and for each of the remaining rows a map will be returned with values matched to the keys in the header
(parse-gherkin input)
(run-gherkin initial-state input)
Runs the input gherkin text, starting with initial-state, which can be nil.
Runs the input gherkin text, starting with initial-state, which can be nil.
(run-gherkin-file path)
(run-gherkin-file initial-state path)
(run-gherkin-files directory)
(splice-background [[bg-verb bg-desc & bg-body] & scenarios :as feature-body])
Given a feature body, checks whether it starts with a background and if so splices it into each scenario. Otherwise, returns its argument unmodified.
Given a feature body, checks whether it starts with a background and if so splices it into each scenario. Otherwise, returns its argument unmodified.
(split-gherkin-line line)
(test-step state [step-type step])
Find the matching step and execute it, passing the state as the first arg
Find the matching step and execute it, passing the state as the first arg
(Then pattern args-vec & fn-body)
Macro version of defstep with reduced syntax for convenience.
Macro version of defstep with reduced syntax for convenience.
(When pattern args-vec & fn-body)
Macro version of defstep with reduced syntax for convenience.
Macro version of defstep with reduced syntax for convenience.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close