Skip to main content

TestingRunResult

Struct TestingRunResult 

Source
pub struct TestingRunResult {
Show 14 fields pub mode: String, pub project: String, pub modules: Vec<String>, pub count: u32, pub verdict: Option<String>, pub slug: Option<String>, pub passed: u32, pub failed: u32, pub skipped: u32, pub errors: u32, pub total: u32, pub duration_ms: u64, pub report: String, pub results: Value,
}
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: String

The project whose testing bundle answered.

§modules: Vec<String>

Discover: every discovered module. Run: the modules executed.

§count: u32

Discover: 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: u32

Tests that passed.

§failed: u32

Tests that failed an assertion.

§skipped: u32

Tests skipped.

§errors: u32

Tests that raised (not an assertion failure).

§total: u32

passed + failed + skipped + errors, as the route reports it.

§duration_ms: u64

The route-measured wall time in milliseconds.

§report: String

The rendered report for --format junit|text (empty string in json and discover modes — the key still rides).

§results: Value

The 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

Source

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.

Trait Implementations§

Source§

impl Debug for TestingRunResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for TestingRunResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more