// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. use super::*; mod common; mod compound; mod dot; mod junit; mod pretty; mod tap; pub use compound::CompoundTestReporter; pub use dot::DotTestReporter; pub use junit::JunitTestReporter; pub use pretty::PrettyTestReporter; pub use tap::TapTestReporter; pub trait TestReporter { fn report_register(&mut self, description: &TestDescription); fn report_plan(&mut self, plan: &TestPlan); fn report_wait(&mut self, description: &TestDescription); fn report_output(&mut self, output: &[u8]); fn report_result( &mut self, description: &TestDescription, result: &TestResult, elapsed: u64, ); fn report_uncaught_error(&mut self, origin: &str, error: Box); fn report_step_register(&mut self, description: &TestStepDescription); fn report_step_wait(&mut self, description: &TestStepDescription); fn report_step_result( &mut self, desc: &TestStepDescription, result: &TestStepResult, elapsed: u64, tests: &IndexMap, test_steps: &IndexMap, ); fn report_summary( &mut self, elapsed: &Duration, tests: &IndexMap, test_steps: &IndexMap, ); fn report_sigint( &mut self, tests_pending: &HashSet, tests: &IndexMap, test_steps: &IndexMap, ); fn report_completed(&mut self); fn flush_report( &mut self, elapsed: &Duration, tests: &IndexMap, test_steps: &IndexMap, ) -> anyhow::Result<()>; }