Skip to main content

BuildNextestUnitTestMode

Enum BuildNextestUnitTestMode 

Source
pub enum BuildNextestUnitTestMode {
    ImmediatelyRun {
        nextest_profile: NextestProfile,
        junit_test_label: String,
        artifact_dir: Option<ReadVar<PathBuf>>,
        results: WriteVar<Vec<TestResults>>,
        publish_done: WriteVar<SideEffect>,
    },
    Archive(WriteVar<Vec<NextestUnitTestArchive>>),
}
Expand description

Build mode to use when building the nextest unit tests

Variants§

§

ImmediatelyRun

Build, immediately run, and publish unit test results, side-stepping any intermediate archiving steps.

Fields

§nextest_profile: NextestProfile
§junit_test_label: String

Friendly label prefix used when publishing JUnit results. Each run is published with this prefix combined with the run’s friendly name to ensure uniqueness within the pipeline.

§artifact_dir: Option<ReadVar<PathBuf>>

If provided, also copy the published junit.xml files into this directory (only honored on local backends).

§results: WriteVar<Vec<TestResults>>

Per-run test results, in the same order produced internally.

§publish_done: WriteVar<SideEffect>

Signaled once every run’s junit.xml has been published.

§

Archive(WriteVar<Vec<NextestUnitTestArchive>>)

Build and archive the tests into nextest archive files, which can then be run via crate::test_nextest_unit_tests_archive.

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for BuildNextestUnitTestMode

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for BuildNextestUnitTestMode

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, 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,