Struct cucumber::writer::Summarize [−][src]
pub struct Summarize<Writer> {
pub writer: Writer,
pub features: usize,
pub rules: usize,
pub scenarios: Stats,
pub steps: Stats,
pub parsing_errors: usize,
pub failed_hooks: usize,
// some fields omitted
}
Expand description
Wrapper for a Writer
for outputting an execution summary (number of
executed features, scenarios, steps and parsing errors).
Underlying Writer
has to be Summarizable
and ArbitraryWriter
with Value
accepting String
. If your underlying ArbitraryWriter
operates with something like JSON (or any other type), you should implement
a Writer
on Summarize
by yourself, to provide the required summary
format.
Fields
writer: Writer
Original Writer
to summarize output of.
features: usize
Number of started Feature
s.
rules: usize
Number of started Rule
s.
scenarios: Stats
steps: Stats
parsing_errors: usize
Number of Parser
errors.
failed_hooks: usize
Number of failed Scenario
hooks.
Implementations
Trait Implementations
Returns number of parsing errors.
Indicates whether there were failures/errors during execution.
CLI options of this Writer
. In case no options should be introduced,
just use cli::Empty
. Read more
Auto Trait Implementations
impl<Writer> RefUnwindSafe for Summarize<Writer> where
Writer: RefUnwindSafe,
impl<Writer> UnwindSafe for Summarize<Writer> where
Writer: UnwindSafe,
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