ESpec.Example (ESpec v1.8.3) 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 example options from most specific to least specific as Keyword list. Can include duplicates.
Extracts specific structs from example context.
Extracts example option.
Extracts example options as they are currently valid for this example as map.
Filters failed examples.
Message for pending examples.
Filters pending examples.
Message for skipped examples.
Filters success examples.
Link to this section Types
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.
Specs
Extracts example options from most specific to least specific as Keyword list. Can include duplicates.
Extracts specific structs from example context.
Specs
Extracts example option.
Specs
Extracts example options as they are currently valid for this example as map.
Filters failed examples.
Message for pending examples.
Filters pending examples.
Message for skipped examples.
Filters success examples.