pub struct ReporterBuilder { /* private fields */ }Expand description
Test reporter builder.
Implementations§
Source§impl ReporterBuilder
impl ReporterBuilder
Sourcepub fn set_no_capture(&mut self, no_capture: bool) -> &mut Self
pub fn set_no_capture(&mut self, no_capture: bool) -> &mut Self
Sets no-capture mode.
In this mode, failure_output and success_output will be ignored, and status_level
will be at least StatusLevel::Pass.
Sourcepub fn set_colorize(&mut self, should_colorize: bool) -> &mut Self
pub fn set_colorize(&mut self, should_colorize: bool) -> &mut Self
Set to true if the reporter should colorize output.
Sourcepub fn set_failure_output(
&mut self,
failure_output: TestOutputDisplay,
) -> &mut Self
pub fn set_failure_output( &mut self, failure_output: TestOutputDisplay, ) -> &mut Self
Sets the conditions under which test failures are output.
Sourcepub fn set_success_output(
&mut self,
success_output: TestOutputDisplay,
) -> &mut Self
pub fn set_success_output( &mut self, success_output: TestOutputDisplay, ) -> &mut Self
Sets the conditions under which test successes are output.
Sourcepub fn set_status_level(&mut self, status_level: StatusLevel) -> &mut Self
pub fn set_status_level(&mut self, status_level: StatusLevel) -> &mut Self
Sets the kinds of statuses to output.
Sourcepub fn set_final_status_level(
&mut self,
final_status_level: FinalStatusLevel,
) -> &mut Self
pub fn set_final_status_level( &mut self, final_status_level: FinalStatusLevel, ) -> &mut Self
Sets the kinds of statuses to output at the end of the run.
Sourcepub fn set_verbose(&mut self, verbose: bool) -> &mut Self
pub fn set_verbose(&mut self, verbose: bool) -> &mut Self
Sets verbose output.
Sourcepub fn set_show_progress(&mut self, show_progress: ShowProgress) -> &mut Self
pub fn set_show_progress(&mut self, show_progress: ShowProgress) -> &mut Self
Sets the way of displaying progress.
Sourcepub fn set_no_output_indent(&mut self, no_output_indent: bool) -> &mut Self
pub fn set_no_output_indent(&mut self, no_output_indent: bool) -> &mut Self
Set to true to disable indentation of captured test output.
Sourcepub fn set_max_progress_running(
&mut self,
max_progress_running: MaxProgressRunning,
) -> &mut Self
pub fn set_max_progress_running( &mut self, max_progress_running: MaxProgressRunning, ) -> &mut Self
Sets the maximum number of running tests to display in the progress bar.
When more tests are running than this limit, only the first N tests are shown with a summary line indicating how many more tests are running.
Source§impl ReporterBuilder
impl ReporterBuilder
Sourcepub fn build<'a>(
&self,
test_list: &TestList<'_>,
profile: &EvaluatableProfile<'a>,
cargo_configs: &CargoConfigs,
output: ReporterStderr<'a>,
structured_reporter: StructuredReporter<'a>,
) -> Reporter<'a>
pub fn build<'a>( &self, test_list: &TestList<'_>, profile: &EvaluatableProfile<'a>, cargo_configs: &CargoConfigs, output: ReporterStderr<'a>, structured_reporter: StructuredReporter<'a>, ) -> Reporter<'a>
Creates a new test reporter.
Trait Implementations§
Source§impl Debug for ReporterBuilder
impl Debug for ReporterBuilder
Source§impl Default for ReporterBuilder
impl Default for ReporterBuilder
Source§fn default() -> ReporterBuilder
fn default() -> ReporterBuilder
Auto Trait Implementations§
impl Freeze for ReporterBuilder
impl RefUnwindSafe for ReporterBuilder
impl Send for ReporterBuilder
impl Sync for ReporterBuilder
impl Unpin for ReporterBuilder
impl UnwindSafe for ReporterBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more