mlua_lspec/types.rs
1/// Result of a single test case.
2#[derive(Debug, Clone)]
3pub struct TestResult {
4 /// Fully-qualified suite path (e.g. "math > addition").
5 pub suite: String,
6 /// Test name as passed to `it()`.
7 pub name: String,
8 /// Whether the test passed.
9 pub passed: bool,
10 /// Error message if the test failed.
11 pub error: Option<String>,
12}
13
14/// Aggregated results from a test run.
15#[derive(Debug, Clone)]
16pub struct TestSummary {
17 pub passed: usize,
18 pub failed: usize,
19 pub total: usize,
20 pub tests: Vec<TestResult>,
21}