pub enum TestingFormat {
Json,
Junit,
Text,
}Expand description
The report ign testing run renders into data.report.
The gateway route CAN emit junit/text itself, but only its json
path sets the 200/207 status and returns machine counts — its
junit answer is raw XML and its text answer is raw <pre> text,
both at HTTP 200 with no passed/failed/errors/total anywhere.
A straight passthrough would therefore make a RED suite exit 0 in
junit and text mode, the exact opposite of what a CI flag is for
(and XML on stdout would be a new exception to the envelope
purity contract that contract_stdout_purity pins).
So the CLI always POSTs format: "json" and renders the report
locally, as pure functions: ONE suite execution, one round trip,
and the verdict + exit code are IDENTICAL in every format.
Variants§
Json
Structured results only — data.report stays empty.
Junit
JUnit XML in data.report, for a CI test reporter.
Text
Console-style text in data.report, for a human reading logs.
Implementations§
Trait Implementations§
Source§impl Clone for TestingFormat
impl Clone for TestingFormat
impl Copy for TestingFormat
Source§impl Debug for TestingFormat
impl Debug for TestingFormat
Source§impl Default for TestingFormat
impl Default for TestingFormat
impl Eq for TestingFormat
Source§impl PartialEq for TestingFormat
impl PartialEq for TestingFormat
impl StructuralPartialEq for TestingFormat
Auto Trait Implementations§
impl Forget for TestingFormat
impl Freeze for TestingFormat
impl Move for TestingFormat
impl RefUnwindSafe for TestingFormat
impl Send for TestingFormat
impl Sync for TestingFormat
impl Unpin for TestingFormat
impl UnsafeUnpin for TestingFormat
impl UnwindSafe for TestingFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.