pub struct TestAttributesDecoration {
    pub name: Option<&'static str>,
    pub description: Option<&'static str>,
    pub location: ComponentLocation,
    pub allow_fail: Option<bool>,
    pub ignore: Option<bool>,
    pub warning_time_limit: Option<Duration>,
    pub time_limit: Option<Duration>,
    pub concurrency_mode: Option<ConcurrencyMode>,
}

Fields

name: Option<&'static str>description: Option<&'static str>location: ComponentLocation

The source code location of this test

allow_fail: Option<bool>

Indicates that test should be run, however failures should be ignored and do not cascade.

ignore: Option<bool>

Indicates that test should not be run.

warning_time_limit: Option<Duration>

The the duration after which a test is flagged as exceeded is expected duration. This can be used to give early warnings before a test exceeds some critical threshold. For example, a HTTP request time out.

time_limit: Option<Duration>

The maximum duration a test can take before it is forcibly aborted

concurrency_mode: Option<ConcurrencyMode>

The concurrency mode which this test will adhere to. ConcurrencyMode::Parallel will allow this test for be run at the same time as other tests within this tests suite ConcurrencyMode::Sequential will ensure that this test wont run at the same time as any other test from this suite

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.