Trait cucumber::StatsWriter

source ·
pub trait StatsWriter<World>: Writer<World> {
    // Required methods
    fn passed_steps(&self) -> usize;
    fn skipped_steps(&self) -> usize;
    fn failed_steps(&self) -> usize;
    fn retried_steps(&self) -> usize;
    fn parsing_errors(&self) -> usize;
    fn hook_errors(&self) -> usize;

    // Provided method
    fn execution_has_failed(&self) -> bool { ... }
}
Expand description

Writer tracking a number of Passed, Skipped, Failed Steps and parsing errors.

Required Methods§

source

fn passed_steps(&self) -> usize

Returns number of Passed Steps.

source

fn skipped_steps(&self) -> usize

Returns number of Skipped Steps.

source

fn failed_steps(&self) -> usize

Returns number of Failed Steps.

source

fn retried_steps(&self) -> usize

Returns number of retried Steps.

source

fn parsing_errors(&self) -> usize

Returns number of parsing errors.

source

fn hook_errors(&self) -> usize

Returns number of failed Scenario hooks.

Provided Methods§

source

fn execution_has_failed(&self) -> bool

Indicates whether there were failures/errors during execution.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<W, L, R> Stats<W> for Tee<L, R>
where L: Stats<W>, R: Stats<W>, Self: Writer<W>,

source§

impl<W, L, R, F> Stats<W> for Or<L, R, F>
where L: Stats<W>, R: Stats<W>, F: FnMut(&Result<Event<Cucumber<W>>>, &Compose<L::Cli, R::Cli>) -> bool, Self: Writer<W>,

source§

impl<W, O> Stats<W> for Libtest<W, O>
where O: Write, Self: Writer<W>,

Available on crate feature libtest only.
source§

impl<W, Wr> Stats<W> for Arbitrary<Wr>
where Wr: Stats<W> + ?Sized, Self: Writer<W>,

source§

impl<W, Wr> Stats<W> for Stats<Wr>
where Wr: Writer<W> + ?Sized, Self: Writer<W>,

source§

impl<W, Wr> Stats<W> for AssertNormalized<Wr>
where Wr: Stats<W>, Self: Writer<W>,

source§

impl<W, Wr> Stats<W> for Normalize<W, Wr>
where Wr: Stats<W>, Self: Writer<W>,

source§

impl<W, Wr> Stats<W> for Summarize<Wr>
where W: World, Self: Writer<W>,

source§

impl<W, Wr, F> Stats<W> for FailOnSkipped<Wr, F>
where Wr: Stats<W>, Self: Writer<W>,

source§

impl<W, Wr, F> Stats<W> for Repeat<W, Wr, F>
where Wr: Stats<W> + NonTransforming, Self: Writer<W>,