Crate hindsight_tests

Crate hindsight_tests 

Source
Expand description

hindsight-tests: Test log processing for hindsight-mcp

This library crate provides functionality to parse and process test results (particularly from cargo-nextest) for consumption by the hindsight-mcp server.

§Example

use hindsight_tests::nextest::{parse_run_output, StreamingParser};

// Parse complete run output
let output = r#"{"type":"suite","event":"started","test_count":1}"#;
let summary = parse_run_output(output).unwrap();

// Or use streaming parser for incremental parsing
let mut parser = StreamingParser::new();
parser.process_line(output).unwrap();

Re-exports§

pub use error::TestsError;
pub use nextest::LibtestEvent;
pub use nextest::StreamingParser;
pub use nextest::TestList;
pub use nextest::TestRunSummary;
pub use nextest::TestSuite;
pub use nextest::parse_list_output;
pub use nextest::parse_run_output;
pub use result::TestOutcome;
pub use result::TestResult;

Modules§

error
Error types for hindsight-tests
nextest
Nextest output parsing
prelude
Re-export commonly used types
result
Test result types