ESpec v1.6.0 ESpec.Example View Source
Defines macros ‘example’ and ‘it’. These macros defines function with random name which will be called when example runs. Example structs %ESpec.Example are accumulated in @examples attribute
Link to this section Summary
Functions
Example struct. description - the description of example, module - spec module, function - random function name, opts - options, file - spec file path, line - the line where example is defined, context - example context. Accumulator for ‘contexts’ and ‘lets’, shared - marks example as shared, status - example status (:new, :success, :failure, :pending), result - the value returned by example block or the pending message, error - store an error, duration - test duration
Context descriptions
Extracts specific structs from example context
Extracts example option
Extracts example options
Filters failed examples
Message for pending examples
Filters pending examples
Message for skipped examples
Filters success examples
Link to this section Functions
Example struct. description - the description of example, module - spec module, function - random function name, opts - options, file - spec file path, line - the line where example is defined, context - example context. Accumulator for ‘contexts’ and ‘lets’, shared - marks example as shared, status - example status (:new, :success, :failure, :pending), result - the value returned by example block or the pending message, error - store an error, duration - test duration.
Context descriptions.
Extracts specific structs from example context.
Extracts example option.
Extracts example options.
Filters failed examples.
Message for pending examples.
Filters pending examples.
Message for skipped examples.
Filters success examples.