Liking cljdoc? Tell your friends :D

scenari.core


afterclj


beforeclj


bind-symbol-fromclj

(bind-symbol-from regex fn)

data-from-exampleclj

(data-from-example example)

return a vector of data as string as found in example row

return a vector of data as string as found in example row
raw docstring

defafterclj

(defafter f)

Define a function that will get executed AFTER every steps when exec-spec will be invoked (or in case of failure)

Define a function that will get executed AFTER every steps when exec-spec will be invoked (or in case of failure)
raw docstring

defandcljmacro

(defand regex params & body)

create and associate a regex to function params and body that will match the steps string in scenarios

create and associate a regex to function params and body that will match the steps string in scenarios
raw docstring

defbeforeclj

(defbefore f)

Define a function that will get executed BEFORE every steps when exec-spec will be invoked

Define a function that will get executed BEFORE every steps when exec-spec will be invoked 
raw docstring

defgivencljmacro

(defgiven regex params & body)

create and associate a regex to function params and body that will match the steps string in scenarios

create and associate a regex to function params and body that will match the steps string in scenarios
raw docstring

defscenarioscljmacro

(defscenarios s)

associate scenarios in a file or resource given as a parameter with the steps contained in the enclosing namespace

associate scenarios in a file or resource given as a parameter with the steps contained in the enclosing namespace
raw docstring

defthencljmacro

(defthen regex params & body)

create and associate a regex to function params and body that will match the steps string in scenarios

create and associate a regex to function params and body that will match the steps string in scenarios
raw docstring

defwhencljmacro

(defwhen regex params & body)

create and associate a regex to function params and body that will match the steps string in scenarios

create and associate a regex to function params and body that will match the steps string in scenarios
raw docstring

examplesclj

(examples examples-ast)

return a vector of map with header name as key and row value

return a vector of map with header name as key and row value
raw docstring

examples-astclj

(examples-ast scenario-ast)

examples-parserclj


exec-scenarioclj

(exec-scenario scenario-ast)

for each step sentence, find the fn which have a regex that match execute that fn and input the return as first param of the next fn

for each step sentence, find the fn which have a regex that match
execute that fn and input the return as first param of the next fn
raw docstring

exec-scenario-with-examplesclj

(exec-scenario-with-examples scenario-ast)

run the scenario for each example rows, then for each step sentence find the fn which have a regex that match get the parameters value from the example and replace the parameter in the sentence then execute that fn with the parameters and input the return as first param of the next fn

run the scenario for each example rows, then
for each step sentence find the fn which have a regex that match
get the parameters value from the example and replace the parameter in the sentence
then execute that fn with the parameters and input the return as first param of the next fn
raw docstring

file-from-fs-or-classpathclj

(file-from-fs-or-classpath x)

generate-step-fnclj

(generate-step-fn step-sentence)

return a string representing a spexec macro call corresponding to the sentence step

return a string representing a spexec macro call corresponding to the sentence step
raw docstring

get-spec-filesclj

(get-spec-files basedir)

gherkin-parserclj


Givenclj

(Given regex fn)

keywords-strclj


kw-translations-dataclj


matching-fnclj

(matching-fn step-sentence)

return the tuple of fn/regex as a vector that match the step-sentence

return the tuple of fn/regex as a vector that match the step-sentence
raw docstring

narrative-astclj

(narrative-ast spec-ast)

narrative-strclj

(narrative-str narrative-ast)

transform a narrative tree to a string

transform a narrative tree to a string
raw docstring

params-from-sentenceclj

(params-from-sentence regex sentence)

params-from-stepsclj

(params-from-steps regex step-sentence)

return a vector of data as string as found in groups the regex found in the step sentence, if the data is a clojure data structure then it will be evaluated otherwise returned as a string, nil if no groups are found

return a vector of data as string as found in groups the regex found in the step sentence,
if the data is a clojure data structure then it will be evaluated otherwise returned as a string,
nil if no groups are found
raw docstring

(print-fn-skeleton step-sentence)

regexes-to-fnsclj


remove-non-word-characterclj

(remove-non-word-character regex-str)

replace-params-with-dataclj

(replace-params-with-data step-sentence data)

reset-steps!clj

(reset-steps!)

rules-parserclj


run-scenariocljmultimethod

Read the spec and execute each step with the code setup by the defgiven, defwhen and defthen macro

Read the spec and execute each step with the code setup by the defgiven, defwhen and defthen macro
raw docstring

run-scenariosclj

(run-scenarios)
(run-scenarios dirs-or-specs)

scenari-pprint-dispatchclj

(scenari-pprint-dispatch str)

scenario-sentenceclj

(scenario-sentence scenario-ast)

scenarios-astclj

(scenarios-ast spec-ast)

sentence-parserclj


step-parserclj


step-sentencesclj

(step-sentences steps-ast)

steps-sentence-astclj

(steps-sentence-ast scenario-ast)

store-fns-and-regexes!clj

(store-fns-and-regexes! regex fn)

tab-params->mapclj

(tab-params->map tab-params)

Thenclj

(Then regex fn)

Whenclj

(When regex fn)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close