Struct cucumber::writer::Basic [−][src]
Expand description
Default Writer
implementation outputting to an io::Write
implementor
(io::Stdout
by default).
Pretty-prints with colors if terminal was successfully detected, otherwise has simple output. Useful for running tests with CI tools.
Ordering
This Writer
isn’t Normalized
by itself, so should be wrapped into
a writer::Normalize
, otherwise will produce output Event
s in a
broken order.
Implementations
Creates a new Normalized
Basic
Writer
outputting to
io::Stdout
.
Creates a new Normalized
Basic
Writer
outputting to the
given output
.
Creates a new non-Normalized
Basic
Writer
outputting to the
given output
.
Use it only if you know what you’re doing. Otherwise, consider using
Basic::new()
which creates an already Normalized
version of a
Basic
Writer
.
Trait Implementations
Auto Trait Implementations
impl<Out> RefUnwindSafe for Basic<Out> where
Out: RefUnwindSafe,
impl<Out> UnwindSafe for Basic<Out> where
Out: 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