Trait parables_testing::reporter::Reporter [−][src]
pub trait Reporter<'a>: Sync { fn report(&self, index: usize, result: TestResult<'a>) -> Result<(), Error>; fn report_skipped(&self, test: Test<'a>) -> Result<(), Error>; fn close(&self) -> Result<(), Error>; fn supports_animation(&self) -> Result<bool, Error> { ... } fn animate(&self) -> Result<(), Error> { ... } fn end(&self) -> Result<(), Error> { ... } fn report_started(&self, _index: usize, _name: &str) -> Result<(), Error> { ... } }
Required Methods
fn report(&self, index: usize, result: TestResult<'a>) -> Result<(), Error>
Report a single result.
fn report_skipped(&self, test: Test<'a>) -> Result<(), Error>
Report that a number of tests have been skipped.
fn close(&self) -> Result<(), Error>
Close the reporter.
Provided Methods
fn supports_animation(&self) -> Result<bool, Error>
Check if reporter supports animation.
fn animate(&self) -> Result<(), Error>
Animate the reporter.
fn end(&self) -> Result<(), Error>
End any in-progress animations.
fn report_started(&self, _index: usize, _name: &str) -> Result<(), Error>
Report that we've started running a test.
Implementors
impl<'a> Reporter<'a> for StdoutReporter
impl<'a> Reporter<'a> for CollectingReporter<'a>