cucumber_trellis/
definition.rs

1use cucumber::{codegen::WorldInventory, Cucumber, parser, runner, Writer, World as CucumberWorld};
2use std::{fmt::Debug, path::PathBuf};
3
4type CucumberConfig<World, Writer> = Cucumber<World, parser::Basic, PathBuf, runner::Basic<World>, Writer>;
5
6/// A trait that defines a Cucumber test.
7pub trait CucumberTest: CucumberWorld + WorldInventory + Debug {
8    /// The name of the test.
9    ///
10    /// This is used to find the feature file.
11    const NAME: &'static str;
12
13    fn config<W: Writer<Self>>(_cucumber: &mut CucumberConfig<Self, W>) {}
14}