kale v0.7.0 Kale.Macros View Source
Macros, automatically imported by use Kale
.
Link to this section Summary
Functions
Generate a step definition matching a particular string and optionally a context map. See the module documentation for usage examples.
An alias for defgiven/2
.
An alias for defgiven/2
.
Generate a feature block, which corresponds to an ExUnit describe
.
Generate a scenario block, which corresponds to an ExUnit test
.
Link to this section Functions
defgiven(step, context \\ {:%{}, [], []}, list) View Source (macro)
Generate a step definition matching a particular string and optionally a context map. See the module documentation for usage examples.
The given, when and then steps are actually interchangeable – the separate macros are provided for readability only.
defthen(step, context \\ {:%{}, [], []}, list) View Source (macro)
An alias for defgiven/2
.
defwhen(step, context \\ {:%{}, [], []}, list) View Source (macro)
An alias for defgiven/2
.
feature(name, list) View Source (macro)
Generate a feature block, which corresponds to an ExUnit describe
.
scenario(name, body) View Source (macro)
Generate a scenario block, which corresponds to an ExUnit test
.