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 SuiteReporter
s and CaseReporter
s 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
impl RunReporter
Sourcepub fn new_ansi_filtered<R: 'static + Reporter + Send + Sync>(
reporter: R,
) -> Self
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|.
Sourcepub fn set_expected_suites(&self, expected_suites: u32)
pub fn set_expected_suites(&self, expected_suites: u32)
Set the number of expected suites for the run.