CucumberTrellis

Struct CucumberTrellis 

Source
pub struct CucumberTrellis { /* private fields */ }

Implementations§

Source§

impl CucumberTrellis

Source

pub fn new(feature_path_base: Option<&Path>) -> Self

Create a new CucumberTrellis with the given path base for feature files.

If the path base is not provided, the current directory is used, and the path base used will be ./tests/features.

Source

pub fn add_test<T: CucumberTest>(&mut self)

Add a test to the trellis.

Source

pub async fn run_tests(self)

Run all tests in the trellis.

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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> Ext for T

Source§

fn assert_normalized(self) -> AssertNormalized<T>

Asserts this Writer being Normalized. Read more
Source§

fn normalized<W>(self) -> Normalize<W, T>

Wraps this Writer into a Normalized version. Read more
Source§

fn summarized(self) -> Summarize<T>

Wraps this Writer to print a summary at the end of an output. Read more
Source§

fn fail_on_skipped(self) -> FailOnSkipped<T>

Wraps this Writer to fail on Skipped Steps if their Scenario isn’t marked with @allow.skipped tag. Read more
Source§

fn fail_on_skipped_with<F>(self, f: F) -> FailOnSkipped<T, F>
where F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,

Wraps this Writer to fail on Skipped Steps if the given with predicate returns true. Read more
Source§

fn repeat_skipped<W>(self) -> Repeat<W, T>

Wraps this Writer to re-output Skipped Steps at the end of an output.
Source§

fn repeat_failed<W>(self) -> Repeat<W, T>

Wraps this Writer to re-output Failed Steps or Parser errors at the end of an output.
Source§

fn repeat_if<W, F>(self, filter: F) -> Repeat<W, T, F>
where F: Fn(&Result<Event<Cucumber<W>>, Error>) -> bool,

Wraps this Writer to re-output filtered events at the end of an output.
Source§

fn tee<W, Wr>(self, other: Wr) -> Tee<T, Wr>
where Wr: Writer<W>,

Attaches the provided other Writer to the current one for passing events to both of them simultaneously.
Source§

fn discard_arbitrary_writes(self) -> Arbitrary<T>

Wraps this Writer into a discard::Arbitrary one, providing a no-op ArbitraryWriter implementation. Read more
Source§

fn discard_stats_writes(self) -> Stats<T>

Wraps this Writer into a discard::Stats one, providing a no-op StatsWriter implementation returning only 0. Read more