Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>,