Trait Testing

Source
pub trait Testing {
    // Required methods
    fn use_case(&self) -> UseCase;
    fn namepath(&self) -> &Namepath;
    fn fixture_dir(&self) -> &Path;
    fn temp_dir(&self) -> &Path;
}
Expand description

Common to all testing models: TestModule, TestGroup, and Test.

Required Methods§

Source

fn use_case(&self) -> UseCase

The testing use-case

Source

fn namepath(&self) -> &Namepath

The namepath

Source

fn fixture_dir(&self) -> &Path

The canonical fixture directory, if configured to use one. By default, this is based on the use-case and namepath

Source

fn temp_dir(&self) -> &Path

The canonical temporary directory, if configured to use one. By default, this is based on the use-case and namepath. The directory is created on construction and deleted upon destruction.

Implementors§

Source§

impl Testing for TestGroup

Source§

impl Testing for TestModule

Source§

impl<'module, 'func> Testing for Test<'module, 'func>