Type Alias RunReporter

Source
pub type RunReporter = EntityReporter<(), Box<dyn Reporter + Send + Sync + 'static>>;
Expand description

A reporter for structured results scoped to a test run. To report results and artifacts for a test run, a user should create a RunReporter, and create child SuiteReporters and CaseReporters beneath it to report results and artifacts scoped to suites and cases. When the run is finished, the user should call record to ensure the results are persisted.

RunReporter, SuiteReporter, and CaseReporter are wrappers around Reporter implementations that statically ensure that some assumptions made by Reporter implemtnations are upheld (for example, that an entity marked finished at most once).

Aliased Type§

struct RunReporter { /* private fields */ }

Implementations§

Source§

impl RunReporter

Source

pub fn new_ansi_filtered<R: 'static + Reporter + Send + Sync>( reporter: R, ) -> Self

Create a RunReporter, where stdout, stderr, syslog, and restricted log artifact types are sanitized for ANSI escape sequences before being passed along to |reporter|.

Source

pub fn new<R: 'static + Reporter + Send + Sync>(reporter: R) -> Self

Create a RunReporter.

Source

pub fn set_expected_suites(&self, expected_suites: u32)

Set the number of expected suites for the run.

Source

pub fn new_suite( &self, url: &str, suite_id: &SuiteId, ) -> Result<SuiteReporter<'_>, Error>

Record a new suite under the test run.