Suite

Trait Suite 

Source
pub trait Suite {
    type Case: Case;

    // Required method
    fn suite_path(&self) -> &Path;

    // Provided methods
    fn run(&self) { ... }
    fn run_only(&self, name: &str) { ... }
}
Expand description

A collection of tests.

Required Associated Types§

Source

type Case: Case

The type of test cases in this suite.

Required Methods§

Source

fn suite_path(&self) -> &Path

The path to the test suite directory.

Provided Methods§

Source

fn run(&self)

Run all test cases in the suite.

Source

fn run_only(&self, name: &str)

Load and run each contained test case for the provided sub-folder.

§Note

This recursively finds every test description in the resulting path.

Implementors§