Module core

Source
Expand description

Core primitives and data types for BDD-like test definition and execution.

The data model is inspired by Gherkin.

Structs§

Background
A Background spec section.
Example
An Example spec section.
Raw

Enums§

Error
Errors that might be returned by a process call.
Section
A spec section extracted from a parsed input.

Traits§

AsyncHandler
An async version of Handler.
Handler
A trait to be implemented by spec handlers.

Functions§

async_process
An async version of process.
async_rewrite
An async version of rewrite.
async_run
An async version of run.
process
Process spec-style Sections extracted from a Markdown document at the given path using a user-defined Handler.
rewrite
Rewrite spec-style Sections extracted from a Markdown document at the given path using a user-defined Handler.
run
Either process or rewrite the spec-style Sections extracted from a Markdown document at the given path using a user-defined Handler depending on the value of the REWRITE_SPECS environment variable.