Liking cljdoc? Tell your friends :D

scenari.core


afterclj

source

beforeclj

source

bind-symbol-fromclj

(bind-symbol-from regex fn)
source

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
sourceraw 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)
sourceraw 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
sourceraw 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 
sourceraw 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
sourceraw 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
sourceraw 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
sourceraw 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
sourceraw 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
sourceraw docstring

examples-astclj

(examples-ast scenario-ast)
source

examples-parserclj

source

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
sourceraw 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
sourceraw docstring

file-from-fs-or-classpathclj

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

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
sourceraw docstring

get-spec-filesclj

(get-spec-files basedir)
source

gherkin-parserclj

source

Givenclj

(Given regex fn)
source

keywords-strclj

source

kw-translations-dataclj

source

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
sourceraw docstring

narrative-astclj

(narrative-ast spec-ast)
source

narrative-strclj

(narrative-str narrative-ast)

transform a narrative tree to a string

transform a narrative tree to a string
sourceraw docstring

params-from-sentenceclj

(params-from-sentence regex sentence)
source

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
sourceraw docstring

(print-fn-skeleton step-sentence)
source

regexes-to-fnsclj

source

remove-non-word-characterclj

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

replace-params-with-dataclj

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

reset-steps!clj

(reset-steps!)
source

rules-parserclj

source

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
sourceraw docstring

run-scenariosclj

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

scenari-pprint-dispatchclj

(scenari-pprint-dispatch str)
source

scenario-sentenceclj

(scenario-sentence scenario-ast)
source

scenarios-astclj

(scenarios-ast spec-ast)
source

sentence-parserclj

source

step-parserclj

source

step-sentencesclj

(step-sentences steps-ast)
source

steps-sentence-astclj

(steps-sentence-ast scenario-ast)
source

store-fns-and-regexes!clj

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

tab-params->mapclj

(tab-params->map tab-params)
source

Thenclj

(Then regex fn)
source

Whenclj

(When regex fn)
source

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

× close