Trait ef_tests::suite::Suite

source ·
pub trait Suite {
    type Case: Case;

    // Required method
    fn suite_name(&self) -> String;

    // Provided method
    fn run(&self) { ... }
}
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_name(&self) -> String

The name of the test suite used to locate the individual test cases.

§Example
  • GeneralStateTests
  • BlockchainTests/InvalidBlocks
  • BlockchainTests/TransitionTests

Provided Methods§

source

fn run(&self)

Load an run each contained test case.

§Note

This recursively finds every test description in the resulting path.

Implementors§