pub struct TestingRunResult {}Expand description
ign testing run result — ALL keys always present (the family
convention: agents never key-hunt). Discover mode leaves the
verdict/count fields at their zero/None defaults.
Fields§
§mode: String"discover" or "run".
project: StringThe project whose testing bundle answered.
modules: Vec<String>Discover: every discovered module. Run: the modules executed.
count: u32Discover: the module count. Run: the module count executed.
verdict: Option<String>"passed" | "failed" — null in discover mode (a
discovery is not a verdict).
slug: Option<String>TESTS_FAILED_SLUG on a red run, null otherwise — the
stable machine slug agents branch on.
passed: u32Tests that passed.
failed: u32Tests that failed an assertion.
skipped: u32Tests skipped.
errors: u32Tests that raised (not an assertion failure).
total: u32passed + failed + skipped + errors, as the route reports it.
duration_ms: u64The route-measured wall time in milliseconds.
report: StringThe rendered report for --format junit|text (empty string in
json and discover modes — the key still rides).
results: ValueThe route’s answer VERBATIM — null in discover mode. Never
interpreted, so a route that grows a field does not need a CLI
release to surface it.
Implementations§
Source§impl TestingRunResult
impl TestingRunResult
Sourcepub fn failure_exit_code(&self) -> Option<u8>
pub fn failure_exit_code(&self) -> Option<u8>
The red-run exit passthrough, mirroring
crate::actions::lint::LintResult::strict_exit_code:
Some(6) (target state — the LOCKED taxonomy’s
gateway-state class) when the suite failed, None otherwise.
The envelope renders FIRST; the binary decides the exit after.