Enum cucumber::event::Scenario [−][src]
pub enum Scenario<World> {
Started,
Hook(HookType, Hook<World>),
Background(Arc<Step>, Step<World>),
Step(Arc<Step>, Step<World>),
Finished,
}
Expand description
Event specific to a particular Scenario.
Variants
Started
Scenario
execution being started.
Hook(HookType, Hook<World>)
Hook
event.
Background(Arc<Step>, Step<World>)
Background
Step
event.
Step(Arc<Step>, Step<World>)
Step
event.
Finished
Scenario
execution being finished.
Implementations
Constructs an event of a Scenario
hook being started.
Constructs an event of a passed Scenario
hook.
Constructs an event of a failed Scenario
hook.
Constructs an event of a Step
being started.
Constructs an event of a Background
Step
being started.
Constructs an event of a passed Step
.
Constructs an event of a passed Background
Step
.
Constructs an event of a skipped Step
.
Constructs an event of a skipped Background
Step
.
pub fn step_failed(
step: Arc<Step>,
captures: Option<CaptureLocations>,
world: Option<Arc<World>>,
info: impl Into<StepError>
) -> Self
pub fn step_failed(
step: Arc<Step>,
captures: Option<CaptureLocations>,
world: Option<Arc<World>>,
info: impl Into<StepError>
) -> Self
Constructs an event of a failed Step
.
pub fn background_step_failed(
step: Arc<Step>,
captures: Option<CaptureLocations>,
world: Option<Arc<World>>,
info: impl Into<StepError>
) -> Self
pub fn background_step_failed(
step: Arc<Step>,
captures: Option<CaptureLocations>,
world: Option<Arc<World>>,
info: impl Into<StepError>
) -> Self
Constructs an event of a failed Background
Step
.
Trait Implementations
Auto Trait Implementations
impl<World> !RefUnwindSafe for Scenario<World>
impl<World> !UnwindSafe for Scenario<World>
Blanket Implementations
Mutably borrows from an owned value. Read more
Asserts this Writer
being Normalized
. Read more
pub fn fail_on_skipped(
Self
) -> FailOnSkipped<T, fn(&Feature, Option<&Rule>, &Scenario) -> bool>
pub fn fail_on_skipped(
Self
) -> FailOnSkipped<T, fn(&Feature, Option<&Rule>, &Scenario) -> bool>
pub fn fail_on_skipped_with<F>(Self, F) -> FailOnSkipped<T, F> where
F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,
pub fn fail_on_skipped_with<F>(Self, F) -> FailOnSkipped<T, F> where
F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,
Wraps this Writer
into a discard::Arbitrary
one, providing a
no-op ArbitraryWriter
implementation. Read more
Wraps this Writer
into a discard::Arbitrary
one, providing a
no-op FailureWriter
implementation returning only 0
. Read more