mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-20 05:41:04 +00:00
d93824d973
* Remove the old reporting infra * Use the Test struct more in the code * Implement the initial set of reporter events * Add more runner events to the reporter and refine the structure * Add reporting infra for reporting ignored tests * Update report to use better map data structures * Add case status information to the report * Integrate the reporting infrastructure with the CLI reporter used by the program. * Include contract compilation information in report * Cleanup report model * Add information on the deployed contracts
23 lines
747 B
Rust
23 lines
747 B
Rust
//! A reporter event sent by the report aggregator to the various listeners.
|
|
|
|
use std::collections::BTreeMap;
|
|
|
|
use revive_dt_compiler::Mode;
|
|
use revive_dt_format::case::CaseIdx;
|
|
|
|
use crate::{MetadataFilePath, TestCaseStatus};
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub enum ReporterEvent {
|
|
/// An event sent by the reporter once an entire metadata file and solc mode combination has
|
|
/// finished execution.
|
|
MetadataFileSolcModeCombinationExecutionCompleted {
|
|
/// The path of the metadata file.
|
|
metadata_file_path: MetadataFilePath,
|
|
/// The Solc mode that this metadata file was executed in.
|
|
mode: Mode,
|
|
/// The status of each one of the cases.
|
|
case_status: BTreeMap<CaseIdx, TestCaseStatus>,
|
|
},
|
|
}
|