ESpec v1.7.0 ESpec.Context View Source

Defines macros 'context', 'describe', and 'example_group'. Defines macros for 'skip' and 'focus' example groups

Link to this section Summary

Link to this section Functions

Link to this function

%ESpec.Context{} View Source (struct)

Context has description, line, and options. Available options are:

  • [skip: true] or [skip: "Reason"] - skips examples in the context;
  • [focus: true] - sets focus to run with --focus option.

empty context

Link to this macro

context(opts, list) View Source (macro)

context with description only

Link to this macro

context(description, opts, list) View Source (macro)

Add context with description and opts to 'example context'.

Link to this macro

describe(arg1) View Source (macro)

Link to this macro

describe(description_or_opts, list) View Source (macro)

Link to this macro

describe(description, opts, list) View Source (macro)

Aliases for context.

Link to this macro

example_group(arg1) View Source (macro)

Link to this macro

example_group(description_or_opts, list) View Source (macro)

Link to this macro

example_group(description, opts, list) View Source (macro)

Link to this macro

fcontext(list) View Source (macro)

Link to this macro

fcontext(opts, list) View Source (macro)

Link to this macro

fcontext(description, opts, list) View Source (macro)

Macros for focused contexts

Link to this macro

fdescribe(list) View Source (macro)

Link to this macro

fdescribe(opts, list) View Source (macro)

Link to this macro

fdescribe(description, opts, list) View Source (macro)

Link to this macro

fexample_group(list) View Source (macro)

Link to this macro

fexample_group(opts, list) View Source (macro)

Link to this macro

fexample_group(description, opts, list) View Source (macro)

Link to this macro

xcontext(list) View Source (macro)

Link to this macro

xcontext(opts, list) View Source (macro)

Link to this macro

xcontext(description, opts, list) View Source (macro)

Macros for skipped contexts

Link to this macro

xdescribe(list) View Source (macro)

Link to this macro

xdescribe(opts, list) View Source (macro)

Link to this macro

xdescribe(description, opts, list) View Source (macro)

Link to this macro

xexample_group(list) View Source (macro)

Link to this macro

xexample_group(opts, list) View Source (macro)

Link to this macro

xexample_group(description, opts, list) View Source (macro)